diff options
author | Rob Clark <[email protected]> | 2018-08-15 14:04:12 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-08-17 11:04:21 -0400 |
commit | 7c73d411606ce118412f833bfb90e593e0bb1f5e (patch) | |
tree | 557b7c5f37d89f42210b66ab7c1723de284e7da1 /src/gallium/drivers/freedreno | |
parent | b7f18e49b75dc139122cc58c273f44392fcd11e0 (diff) |
freedreno/a6xx: scissor fixes
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-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 |