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:
@@ -515,6 +515,9 @@ static void
|
|||||||
blorp_emit_post_draw(struct blorp_batch *blorp_batch, const struct blorp_params *params)
|
blorp_emit_post_draw(struct blorp_batch *blorp_batch, const struct blorp_params *params)
|
||||||
{
|
{
|
||||||
struct iris_batch *batch = blorp_batch->driver_batch;
|
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);
|
genX(maybe_emit_breakpoint)(batch, false);
|
||||||
blorp_measure_end(blorp_batch, params);
|
blorp_measure_end(blorp_batch, params);
|
||||||
}
|
}
|
||||||
|
@@ -469,6 +469,12 @@ static void
|
|||||||
blorp_emit_post_draw(struct blorp_batch *batch, const struct blorp_params *params)
|
blorp_emit_post_draw(struct blorp_batch *batch, const struct blorp_params *params)
|
||||||
{
|
{
|
||||||
struct anv_cmd_buffer *cmd_buffer = batch->driver_batch;
|
struct anv_cmd_buffer *cmd_buffer = batch->driver_batch;
|
||||||
|
|
||||||
|
genX(batch_emit_post_3dprimitive_was)(&cmd_buffer->batch,
|
||||||
|
cmd_buffer->device,
|
||||||
|
_3DPRIM_RECTLIST,
|
||||||
|
3);
|
||||||
|
|
||||||
genX(emit_breakpoint)(&cmd_buffer->batch, cmd_buffer->device, false);
|
genX(emit_breakpoint)(&cmd_buffer->batch, cmd_buffer->device, false);
|
||||||
blorp_measure_end(batch, params);
|
blorp_measure_end(batch, params);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user