[Mesa-dev] [PATCH 2/2] intel/blorp/icl: Enable clear color conversion when fast clearing

Topi Pohjolainen topi.pohjolainen at gmail.com
Tue Apr 3 15:15:33 UTC 2018


CC: Rafael Antognolli <rafael.antognolli at intel.com>
CC: Jordan Justen <jordan.l.justen at intel.com>
CC: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 src/intel/blorp/blorp_genX_exec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index 721f02a..53c6b2a 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -1319,6 +1319,8 @@ blorp_emit_surface_state(struct blorp_batch *batch,
                        .aux_surf = &surface->aux_surf, .aux_usage = aux_usage,
                        .mocs = surface->addr.mocs,
                        .clear_color = surface->clear_color,
+                       .clear_color_conversion_enable =
+                           GEN_GEN >= 11 && op == ISL_AUX_OP_FAST_CLEAR,
                        .write_disables = write_disable_mask);
 
    blorp_surface_reloc(batch, state_offset + isl_dev->ss.addr_offset,
-- 
2.7.4



More information about the mesa-dev mailing list