diff options
author | Alex Deucher <[email protected]> | 2009-10-09 15:44:32 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-10-09 15:44:32 -0400 |
commit | 194ede4bf97547ce8a61587ede0b0a5054955783 (patch) | |
tree | 66a7e91f66976a6a1a83c5e878f207a50c23c05f /src/mesa/drivers/dri/r600 | |
parent | 2738681e847ec257e275f3575d010ac13a147f1b (diff) |
radeon: fix scissor regression
fixes fdo bug 24248
Diffstat (limited to 'src/mesa/drivers/dri/r600')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_state.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c index 124469b5a69..98f116d0a6a 100644 --- a/src/mesa/drivers/dri/r600/r700_state.c +++ b/src/mesa/drivers/dri/r600/r700_state.c @@ -1269,11 +1269,15 @@ void r700SetScissor(context_t *context) //--------------- return; } if (context->radeon.state.scissor.enabled) { - /* r600 has exclusive scissors */ x1 = context->radeon.state.scissor.rect.x1; y1 = context->radeon.state.scissor.rect.y1; - x2 = context->radeon.state.scissor.rect.x2 + 1; - y2 = context->radeon.state.scissor.rect.y2 + 1; + x2 = context->radeon.state.scissor.rect.x2; + y2 = context->radeon.state.scissor.rect.y2; + /* r600 has exclusive BR scissors */ + if (context->radeon.radeonScreen->kernel_mm) { + x2++; + y2++; + } } else { if (context->radeon.radeonScreen->driScreen->dri2.enabled) { x1 = 0; |