summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-06 08:27:43 +0000
committerKeith Whitwell <[email protected]>2009-11-06 08:27:43 +0000
commitb9bb41321a9add139cd1dbddcf48e6c81c9d019d (patch)
treef32d17a7b8bee149aae6fd6d06c76e8b1161c64c /src/gallium/drivers/i965
parenta49ccf0fd25575c4e40398e5d22f3931e80921f8 (diff)
i965g: scissor off by one
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_sf_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_sf_state.c b/src/gallium/drivers/i965/brw_sf_state.c
index e4126698446..955478e6240 100644
--- a/src/gallium/drivers/i965/brw_sf_state.c
+++ b/src/gallium/drivers/i965/brw_sf_state.c
@@ -58,9 +58,9 @@ static enum pipe_error upload_sf_vp(struct brw_context *brw)
sfv.viewport.m32 = vp->translate[2];
sfv.scissor.xmin = scissor->minx;
- sfv.scissor.xmax = scissor->maxx; /* -1 ?? */
+ sfv.scissor.xmax = scissor->maxx - 1; /* ? */
sfv.scissor.ymin = scissor->miny;
- sfv.scissor.ymax = scissor->maxy; /* -1 ?? */
+ sfv.scissor.ymax = scissor->maxy - 1; /* ? */
ret = brw_cache_data( &brw->cache, BRW_SF_VP, &sfv, NULL, 0,
&brw->sf.vp_bo );