blorp: WA 16014538804 for DG2, MTL A0

Send empty/dummy PIPE_CONTROL after every third 3DPRIMITIVE command.

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25039>
This commit is contained in:
Rohan Garg
2023-10-26 17:35:58 +02:00
committed by Marge Bot
parent de6653dc5d
commit a77ea9555a
2 changed files with 9 additions and 0 deletions

View File

@@ -515,6 +515,9 @@ static void
blorp_emit_post_draw(struct blorp_batch *blorp_batch, const struct blorp_params *params)
{
struct iris_batch *batch = blorp_batch->driver_batch;
// A _3DPRIM_RECTLIST is a MESA_PRIM_QUAD_STRIP with a implied vertex
genX(emit_3dprimitive_was)(batch, NULL, MESA_PRIM_QUAD_STRIP, 3);
genX(maybe_emit_breakpoint)(batch, false);
blorp_measure_end(blorp_batch, params);
}