nv50,nvc0: srgb rendering is only available for rgba/bgra
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jul 2016 21:14:24 +0000 (17:14 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 19 Jul 2016 00:04:17 +0000 (20:04 -0400)
commited9dd3bcd9990b321f523823287643cbf893949f
tree9aae4076e51de8f9affb257006f531cb32bdca82
parent8e7893eb53213254997a1a3beb0575be11821f83
nv50,nvc0: srgb rendering is only available for rgba/bgra

Mark both L8_SRGB and L8A8_SRGB as non-renderable (the latter already
didn't have the bind flags). This makes the state tracker pick a
different format when rendering is required, or mark the fb as
incomplete. This fixes:

  bin/getteximage-formats init-by-clear-and-render -auto -fbo
  bin/getteximage-formats init-by-rendering -auto -fbo

which previously ran into srgb-encoding differences.

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