mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
965: fix off-by-one in scissor rect
This commit is contained in:
parent
2f53713beb
commit
05ec043d1c
1 changed files with 2 additions and 2 deletions
|
|
@ -58,9 +58,9 @@ static void upload_sf_vp(struct brw_context *brw)
|
|||
|
||||
/* _NEW_SCISSOR */
|
||||
sfv.scissor.xmin = brw->attribs.Scissor.minx;
|
||||
sfv.scissor.xmax = brw->attribs.Scissor.maxx;
|
||||
sfv.scissor.xmax = brw->attribs.Scissor.maxx - 1;
|
||||
sfv.scissor.ymin = brw->attribs.Scissor.miny;
|
||||
sfv.scissor.ymax = brw->attribs.Scissor.maxy;
|
||||
sfv.scissor.ymax = brw->attribs.Scissor.maxy - 1;
|
||||
|
||||
brw->sf.vp_gs_offset = brw_cache_data( &brw->cache[BRW_SF_VP], &sfv );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue