aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-09-18 11:07:16 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit921790b0801d52109e47bfc82659587b189c04e4 (patch)
treec32ab8104c0aba6dd4837ee0ea3fca670f7807a5 /src
parent73a4cef22001518a0ebf0337f3c135e95fa24d85 (diff)
iris: initialize "don't suck" bits, as Ben likes to call them
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 07bae4a3cd0..0217007d83f 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -547,6 +547,16 @@ iris_init_render_context(struct iris_screen *screen,
}
iris_emit_lri(batch, CS_DEBUG_MODE2, reg_val);
+#if GEN_GEN == 9
+ iris_pack_state(GENX(CACHE_MODE_1), &reg_val, reg) {
+ reg.FloatBlendOptimizationEnable = true;
+ reg.FloatBlendOptimizationEnableMask = true;
+ reg.PartialResolveDisableInVC = true;
+ reg.PartialResolveDisableInVCMask = true;
+ }
+ iris_emit_lri(batch, CACHE_MODE_1, reg_val);
+#endif
+
/* 3DSTATE_DRAWING_RECTANGLE is non-pipelined, so we want to avoid
* changing it dynamically. We set it to the maximum size here, and
* instead include the render target dimensions in the viewport, so