nvc0: fix blitting red to srgb8_alpha
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 Oct 2018 21:45:07 +0000 (17:45 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 9 Oct 2018 14:33:11 +0000 (10:33 -0400)
commit92f56fbd8969801fc88de606e1051dc397331e7d
tree54fb81c429199a98f63c6b01ae9f2646c959bac9
parent9bf0614116cdfdbfca9952c6547331731a462dcc
nvc0: fix blitting red to srgb8_alpha

For some reason the 2d engine can't handle this. Red formats get special
treatment there, so perhaps related.

Fixes dEQP-GLES3 tests of the form:

  dEQP-GLES3.functional.fbo.blit.conversion.r{8,16f,32f}_to_srgb8_alpha8

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c