mesa/st: do not blit when using compressed fallback
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 31 Aug 2022 13:13:28 +0000 (15:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 10:42:40 +0000 (10:42 +0000)
commitd01cbced85211bfd3141f5ccf8c46106bdd1bdcc
tree514dc9fb41abf28074f9542ae2924b6f282755c6
parent802fa57274bb504b688bc966120c203bf4854e8e
mesa/st: do not blit when using compressed fallback

If we're using the blit-path, we don't update the compressed image, which
will be needed if an application try to download the texture-image again
afterwards.

I previously fixed this for the memcpy-codepath, but we actually need to
fall back for the blit code-path as well. So let's move this early-out
earlier to catch both.

Fixes: 8f446322e1b ("mesa/st: do not use memcpy when using compressed fallback")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18342>
src/mesa/state_tracker/st_cb_texture.c