mesa: check target/format for Tex(ture)StorageMem*
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Nov 2021 02:47:15 +0000 (21:47 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 20 Nov 2021 01:45:13 +0000 (20:45 -0500)
commitd814539c2b67ca28009dd1b239f444ea086e3b39
tree9dff0854cb83e681252fdc3a2b691ebfdf3e7867
parentf659d00000a1a3667f9861d01d5828dd12ec6857
mesa: check target/format for Tex(ture)StorageMem*

Noticed while doing an audit around _mesa_get_current_tex usage.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13767>
src/mesa/main/externalobjects.c
src/mesa/main/texstorage.c
src/mesa/main/texstorage.h