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>
iris_init_common_context(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;
#if GFX_VER >= 9
iris_emit_reg(batch, GENX(CS_DEBUG_MODE2), reg) {
reg.CONSTANT_BUFFERAddressOffsetDisable = true;