diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_draw.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_gmem.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c index e4d44683ca7..5c5667515ce 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c @@ -361,8 +361,8 @@ fd6_clear(struct fd_context *ctx, unsigned buffers, OUT_PKT4(ring, REG_A6XX_RB_BLIT_SCISSOR_TL, 2); OUT_RING(ring, A6XX_RB_BLIT_SCISSOR_TL_X(scissor->minx) | A6XX_RB_BLIT_SCISSOR_TL_Y(scissor->miny)); - OUT_RING(ring, A6XX_RB_BLIT_SCISSOR_BR_X(scissor->maxx) | - A6XX_RB_BLIT_SCISSOR_BR_Y(scissor->maxy)); + OUT_RING(ring, A6XX_RB_BLIT_SCISSOR_BR_X(scissor->maxx - 1) | + A6XX_RB_BLIT_SCISSOR_BR_Y(scissor->maxy - 1)); if (buffers & PIPE_CLEAR_COLOR) { for (int i = 0; i < pfb->nr_cbufs; i++) { diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index dd0f16a2bcc..fdffc692b2a 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -548,8 +548,8 @@ set_blit_scissor(struct fd_batch *batch) A6XX_RB_BLIT_SCISSOR_TL_X(blit_scissor.minx) | A6XX_RB_BLIT_SCISSOR_TL_Y(blit_scissor.miny)); OUT_RING(ring, - A6XX_RB_BLIT_SCISSOR_BR_X(blit_scissor.maxx) | - A6XX_RB_BLIT_SCISSOR_BR_Y(blit_scissor.maxy)); + A6XX_RB_BLIT_SCISSOR_BR_X(blit_scissor.maxx - 1) | + A6XX_RB_BLIT_SCISSOR_BR_Y(blit_scissor.maxy - 1)); } static void |