mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
freedreno/a6xx: Drop max_scissor tracking
We don't actually really use this on a6xx, since SQE can early-exit IB2 when there are no more remaining primitives in the bin. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19100>
This commit is contained in:
parent
2ad637f52a
commit
f9eb0c13a0
2 changed files with 7 additions and 14 deletions
|
|
@ -742,15 +742,6 @@ build_scissor(struct fd6_emit *emit) assert_dt
|
|||
A6XX_GRAS_SC_SCREEN_SCISSOR_BR(0, .x = MAX2(scissor->maxx, 1) - 1,
|
||||
.y = MAX2(scissor->maxy, 1) - 1));
|
||||
|
||||
ctx->batch->max_scissor.minx =
|
||||
MIN2(ctx->batch->max_scissor.minx, scissor->minx);
|
||||
ctx->batch->max_scissor.miny =
|
||||
MIN2(ctx->batch->max_scissor.miny, scissor->miny);
|
||||
ctx->batch->max_scissor.maxx =
|
||||
MAX2(ctx->batch->max_scissor.maxx, scissor->maxx);
|
||||
ctx->batch->max_scissor.maxy =
|
||||
MAX2(ctx->batch->max_scissor.maxy, scissor->maxy);
|
||||
|
||||
return ring;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -966,12 +966,14 @@ fd6_emit_tile_prep(struct fd_batch *batch, const struct fd_tile *tile)
|
|||
static void
|
||||
set_blit_scissor(struct fd_batch *batch, struct fd_ringbuffer *ring)
|
||||
{
|
||||
struct pipe_scissor_state blit_scissor = batch->max_scissor;
|
||||
const struct pipe_framebuffer_state *pfb = &batch->framebuffer;
|
||||
|
||||
blit_scissor.minx = ROUND_DOWN_TO(blit_scissor.minx, 16);
|
||||
blit_scissor.miny = ROUND_DOWN_TO(blit_scissor.miny, 4);
|
||||
blit_scissor.maxx = ALIGN(blit_scissor.maxx, 16);
|
||||
blit_scissor.maxy = ALIGN(blit_scissor.maxy, 4);
|
||||
struct pipe_scissor_state blit_scissor;
|
||||
|
||||
blit_scissor.minx = 0;
|
||||
blit_scissor.miny = 0;
|
||||
blit_scissor.maxx = ALIGN(pfb->width, 16);
|
||||
blit_scissor.maxy = ALIGN(pfb->height, 4);
|
||||
|
||||
OUT_PKT4(ring, REG_A6XX_RB_BLIT_SCISSOR_TL, 2);
|
||||
OUT_RING(ring, A6XX_RB_BLIT_SCISSOR_TL_X(blit_scissor.minx) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue