nv50,nvc0: mark RGBX_UINT formats as renderable
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 Oct 2018 18:57:17 +0000 (14:57 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 9 Oct 2018 14:33:11 +0000 (10:33 -0400)
commit78d3640e49918cbd7a9fd4d0220e47c81902f455
tree9abb817be0961e94b892dc37efd87e95f320b06a
parent976188737d69cbfd688fecab05d3b2c38d8cc876
nv50,nvc0: mark RGBX_UINT formats as renderable

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

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv50/nv50_formats.c