st/mesa: properly guard fallback_copy_texsubimage aginst failed maps
authorKarol Herbst <kherbst@redhat.com>
Thu, 16 Apr 2020 14:01:47 +0000 (16:01 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Apr 2020 11:50:21 +0000 (11:50 +0000)
commit8c949b2aa6e0c27e92a05a57eda11672c2bdb157
tree71e914fd97c1c6f70cd2789de6512b78662a9d1b
parent8521acd660764973940fbdc2c85334670d620b45
st/mesa: properly guard fallback_copy_texsubimage aginst failed maps

Fixes random crashes in some packed_pixel GLES CTS tests

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4592>
src/mesa/state_tracker/st_cb_texture.c