mesa/st: Don't map compressed texture fallbacks for reads
We don't need to map the compressed texture's fallback resource for operations
which will only read from the texture (e.g., glGetCompressedTexImage2D
and
glCopyImageSubData
).
For compressed textures using a fallback, delay the map until
st_UnmapTextureImage
and only do the map if it's being written to.
Edited by Nanley Chery