mesa: Avoid temp images in _mesa_texstore_*_dxt* for stride = 0
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 May 2022 20:10:07 +0000 (13:10 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 27 May 2022 01:47:33 +0000 (01:47 +0000)
commit7577ca7e6a41029be3a336a48382e73549573a5d
tree1fabbaec594abb1e800b8fa05ccd63beb5279e58
parent035e6e32f1c368c57fd2ed872bf0fb37a4eb5d11
mesa: Avoid temp images in _mesa_texstore_*_dxt* for stride = 0

We're getting a source stride of 0 here sometimes, which I believe means
to just use the natural stride, which is what we wanted anyway.  No need
to fall back to a temporary image in that case.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16631>
src/mesa/main/texcompress_s3tc.c