OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Jul 2016 12:48:16 +0000 (13:48 +0100)
commit53bb4e0354d307112b8c0452be8eb64d89c510f7
treec45a4a93a84bd36fefa368842fcb3ff230f00d5a
parentaeb3ca97547a592e79269e6e5b08400d35b5e7e5
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
(cherry picked from commit ed9dd3bcd9990b321f523823287643cbf893949f)
src/gallium/drivers/nouveau/nv50/nv50_formats.c