Skip to content

Commit

Permalink
freedreno/a5xx: Enable local preemption on emit setup
Browse files Browse the repository at this point in the history
In order to support finegrain preemption, make sure to re-enable local
preemption on emit setup.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
  • Loading branch information
kholk authored and MarijnS95 committed Oct 25, 2022
1 parent 4f92aa8 commit deeb6b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gallium/drivers/freedreno/a5xx/fd5_emit.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,11 @@ fd5_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring)
struct fd_context *ctx = batch->ctx;

fd5_set_render_mode(ctx, ring, BYPASS);

/* Enable local preemption */
OUT_PKT7(ring, CP_PREEMPT_ENABLE_LOCAL, 1);
OUT_RING(ring, 1);

fd5_cache_flush(batch, ring);

OUT_PKT4(ring, REG_A5XX_HLSQ_UPDATE_CNTL, 1);
Expand Down

0 comments on commit deeb6b2

Please sign in to comment.