From b76659997ebb08e69430bfd5eafbe2af5d494a8f Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Thu, 27 Apr 2017 10:35:05 -0700 Subject: i965/cnl: Don't resolve single sampled color rb in case of sRGB formats As sRGB now supports lossless compression, we also need to stop resolving single sampled color render buffers for sRGB formats in Gen 10. Signed-off-by: Anuj Phogat Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 7b4cb12ac68..eda8a0afab5 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -2582,7 +2582,7 @@ intel_miptree_prepare_render(struct brw_context *brw, * enabled because otherwise the surface state will be programmed with * the linear equivalent format anyway. */ - if (brw->gen >= 9 && srgb_enabled && mt->num_samples <= 1 && + if (brw->gen == 9 && srgb_enabled && mt->num_samples <= 1 && _mesa_get_srgb_format_linear(mt->format) != mt->format) { /* Lossless compression is not supported for SRGB formats, it -- cgit v1.2.3