i965/cnl: Avoid fast-clearing sRGB render buffers
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 1 Dec 2017 22:18:21 +0000 (14:18 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 4 Dec 2017 22:21:47 +0000 (14:21 -0800)
commit0a257b3fe4d184811c1ddab7afeda81459f36720
tree2ee5213a6a663a1a3c9d708bf3ae8fd4135105e7
parent6a9611763b698e998deaab45ce35751173b088fd
i965/cnl: Avoid fast-clearing sRGB render buffers

Gen10 doesn't automatically decode the clear color of sRGB buffers. To
get correct rendering, avoid fast-clearing such buffers for now.

The driver now passes the following piglit tests:
* spec@arb_framebuffer_srgb@msaa-fast-clear
* spec@ext_texture_srgb@multisample-fast-clear gl_ext_texture_srgb

Suggested-by: Kenneth Graunke <kenneth@whitecape.org>
Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_meta_util.c