Same as previous, but for BSW.

Signed-off-by: Ben Widawsky <b...@bwidawsk.net>
---
 src/mesa/drivers/dri/i965/brw_state_upload.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c 
b/src/mesa/drivers/dri/i965/brw_state_upload.c
index 11098cf..ec6c4e6 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -355,6 +355,13 @@ brw_upload_initial_gpu_state(struct brw_context *brw)
                 GEN9_PARTIAL_RESOLVE_DISABLE_IN_VC          |
                 GEN9_FLOAT_BLEND_OPTMIZATION_ENABLE);
       ADVANCE_BATCH();
+   } else if (brw->is_cherryview) {
+      BEGIN_BATCH(3);
+      OUT_BATCH(MI_LOAD_REGISTER_IMM | (3 - 2));
+      OUT_BATCH(GEN7_CACHE_MODE_1);
+      OUT_BATCH((GEN9_FLOAT_BLEND_OPTMIZATION_ENABLE << 16) |
+                GEN9_FLOAT_BLEND_OPTMIZATION_ENABLE);
+      ADVANCE_BATCH();
    }
 
    if (brw->gen >= 8) {
-- 
2.3.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to