From 7c73d411606ce118412f833bfb90e593e0bb1f5e Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 15 Aug 2018 14:04:12 -0400 Subject: [PATCH] freedreno/a6xx: scissor fixes Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a6xx/fd6_draw.c | 4 ++-- 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 -- 2.30.2