summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDavid Reveman <[email protected]>2011-08-23 18:49:11 -0700
committerStéphane Marchesin <[email protected]>2011-08-25 22:57:48 -0700
commita2c467c0548b658a92af11c063520bc4d027895e (patch)
tree2f6866381592d1995a6dc6d5699d2423e4b663c2 /src/gallium
parent3d9000393b0c2e53f35e5a093ea6781f849230d1 (diff)
i915g: Fix off-by-one in scissors.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915/i915_state_dynamic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_state_dynamic.c b/src/gallium/drivers/i915/i915_state_dynamic.c
index 204cee6fe9e..1a21433eb9e 100644
--- a/src/gallium/drivers/i915/i915_state_dynamic.c
+++ b/src/gallium/drivers/i915/i915_state_dynamic.c
@@ -268,8 +268,8 @@ static void upload_SCISSOR_RECT(struct i915_context *i915)
{
unsigned x1 = i915->scissor.minx;
unsigned y1 = i915->scissor.miny;
- unsigned x2 = i915->scissor.maxx;
- unsigned y2 = i915->scissor.maxy;
+ unsigned x2 = i915->scissor.maxx - 1;
+ unsigned y2 = i915->scissor.maxy - 1;
unsigned sc[3];
sc[0] = _3DSTATE_SCISSOR_RECT_0_CMD;