From 921790b0801d52109e47bfc82659587b189c04e4 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 18 Sep 2018 11:07:16 -0700 Subject: [PATCH] iris: initialize "don't suck" bits, as Ben likes to call them --- src/gallium/drivers/iris/iris_state.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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), ®_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 -- 2.30.2