mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
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.)
This commit is contained in:
parent
27d751cdd8
commit
d612cd1bf8
1 changed files with 4 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue