diff options
author | Kenneth Graunke <[email protected]> | 2019-02-11 14:22:50 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:12 -0800 |
commit | d612cd1bf80f36023f0918beb74df08f9bca8abd (patch) | |
tree | 821d0d63b4755963ac44ae778b18df01657c83d7 /src/gallium/drivers/iris/iris_state.c | |
parent | 27d751cdd8809da66ec4f147b1e8ef7582549f34 (diff) |
iris: Set 3DSTATE_WM::ForceThreadDispatchEnable
The Vulkan driver only sets this if color writes are disabled, which
is more conservative - but would require us to inspect blend state.
(If color writes are enabled, we don't need to force anything, because
the internal signal is already correct. But it shouldn't hurt to do so.)
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 8191141a373..6d75d255eac 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4407,6 +4407,10 @@ iris_upload_dirty_render_state(struct iris_context *ice, wm.EarlyDepthStencilControl = EDSC_PREPS; else if (wm_prog_data->has_side_effects) wm.EarlyDepthStencilControl = EDSC_PSEXEC; + + /* We could skip this bit if color writes are enabled. */ + if (wm_prog_data->has_side_effects || wm_prog_data->uses_kill) + wm.ForceThreadDispatchEnable = ForceON; } iris_emit_merge(batch, cso->wm, dynamic_wm, ARRAY_SIZE(cso->wm)); } |