radeon: fix scissor regression
[mesa.git] / src / mesa / drivers / dri / r600 / r700_state.c
index 124469b5a6953b6cbc2d773d3266aba6ca3344a7..98f116d0a6a1a48f58e3612443a1b44a7c38438c 100644 (file)
@@ -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;