diff options
author | Anuj Phogat <[email protected]> | 2017-04-27 10:35:05 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2017-06-09 16:02:59 -0700 |
commit | b76659997ebb08e69430bfd5eafbe2af5d494a8f (patch) | |
tree | f85b4044e1f7a35354c7ff93e1bbd9b75598745a /src/mesa | |
parent | 640f5d39570daee08ad56a445fa4cd6c97ca50c8 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |