mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i956: Make state dependency of SF on drawbuffer bounds match Mesa's.
Noticed while debugging a weird 1D FBO testcase that left its existing
viewport and projection matrix in place when switching drawbuffers. Didn't
fix the testcase, though.
(cherry picked from commit 3a521d84ec)
This commit is contained in:
parent
97974b7e51
commit
7805c3b57b
1 changed files with 5 additions and 2 deletions
|
|
@ -66,7 +66,9 @@ static void upload_sf_vp(struct brw_context *brw)
|
|||
sfv.viewport.m31 = v[MAT_TY] * y_scale + y_bias;
|
||||
sfv.viewport.m32 = v[MAT_TZ] * depth_scale;
|
||||
|
||||
/* _NEW_SCISSOR */
|
||||
/* _NEW_SCISSOR | _NEW_BUFFERS | _NEW_VIEWPORT
|
||||
* for DrawBuffer->_[XY]{min,max}
|
||||
*/
|
||||
|
||||
/* The scissor only needs to handle the intersection of drawable and
|
||||
* scissor rect. Clipping to the boundaries of static shared buffers
|
||||
|
|
@ -97,7 +99,8 @@ static void upload_sf_vp(struct brw_context *brw)
|
|||
const struct brw_tracked_state brw_sf_vp = {
|
||||
.dirty = {
|
||||
.mesa = (_NEW_VIEWPORT |
|
||||
_NEW_SCISSOR),
|
||||
_NEW_SCISSOR |
|
||||
_NEW_BUFFERS),
|
||||
.brw = 0,
|
||||
.cache = 0
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue