iris: disable preemption on VFG, Wa_14015207028 for DG2

This workaround disables batch level preemption for Polygon,
Trifan and Lineloop primitive topologies.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18456>
This commit is contained in:
Tapani Pälli 2022-05-11 13:10:07 +03:00 committed by Marge Bot
parent ddcd6b3834
commit 27c5b93d37

View file

@ -1058,6 +1058,14 @@ iris_init_render_context(struct iris_batch *batch)
iris_init_common_context(batch);
#if GFX_VERx10 == 125
/* Wa_14015207028 */
iris_emit_reg(batch, GENX(VFG_PREEMPTION_CHICKEN_BITS), vfgc) {
vfgc.PolygonTrifanLineLoopPreemptionDisable = true;
vfgc.PolygonTrifanLineLoopPreemptionDisableMask = true;
};
#endif
#if GFX_VER >= 9
iris_emit_reg(batch, GENX(CS_DEBUG_MODE2), reg) {
reg.CONSTANT_BUFFERAddressOffsetDisable = true;