nv50,nvc0: mark RGBX_UINT formats as renderable

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 9 October 2018 14:33 EDT

This helps st/mesa avoid some (apparently) buggy fallbacks. Specifically the CopyTexSubImage fallback tries to read texture A as RGBA_FLOAT and write back that data into the target format, which fails for integer formats which have no appropriate logic to do the conversion.

Since integer formats don't blend, there's no harm in the fact that the "A" component gets written anyways.

Fixes, among others: https://www.khronos.org/registry/webgl/sdk/tests/conformance2/textures/canvas/tex-2d-rgb8ui-rgb_integer-unsigned_byte.html

78d3640e49 nv50,nvc0: mark RGBX_UINT formats as renderable
src/gallium/drivers/nouveau/nv50/nv50_formats.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org

  • Share