gallium: st wrongly assumes 3D format support for Tex(Sub|Get)Image
Both st_TexSubImage()
and st_TexGetImage()
share this behavior:
- call
st_choose_matching_format()
to find a usage format- this only checks for 2D support
- use whatever the returned format is with whatever the texture target is
So if a driver returns support for 2D, we'll then immediately jump into using 3D even though it might not be valid.