Mesa (master): i965/cnl: Don' t resolve single sampled color rb in case of sRGB formats

Anuj Phogat aphogat at kemper.freedesktop.org
Fri Jun 9 23:09:39 UTC 2017


Module: Mesa
Branch: master
Commit: b76659997ebb08e69430bfd5eafbe2af5d494a8f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b76659997ebb08e69430bfd5eafbe2af5d494a8f

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Thu Apr 27 10:35:05 2017 -0700

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 <anuj.phogat at gmail.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 7b4cb12ac6..eda8a0afab 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




More information about the mesa-commit mailing list