Module: Mesa
Branch: fast-color-clear
Commit: cb10d7be0a20bbe6308575f5f0db0e8f172da0a7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb10d7be0a20bbe6308575f5f0db0e8f172da0a7

Author: Plamena Manolova <[email protected]>
Date:   Tue Jan 15 22:18:54 2019 +0000

isl: Set ClearColorConversionEnable

The ClearColorConversionEnable bit needs to be set
for GEN11 when inderect clear colors are used.

Signed-off-by: Plamena Manolova <[email protected]>

---

 src/intel/isl/isl_surface_state.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/intel/isl/isl_surface_state.c 
b/src/intel/isl/isl_surface_state.c
index 7ab260d701b..4d0d46f2b78 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -618,6 +618,13 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, 
void *state,
          unreachable("Gen9 and earlier do not support indirect clear colors");
 #endif
       }
+
+#if GEN_GEN == 11
+      if (info->use_clear_address) {
+         s.ClearColorConversionEnable = true;
+      }
+#endif
+
 #if GEN_GEN >= 9
       if (!info->use_clear_address) {
          s.RedClearColor = info->clear_color.u32[0];

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to