Dirty flags also need to be updated in face of recent interface change.
Fixes regression in compiz.
Reviewed-by: Brian Paul <brianp@vmware.com>
/* TODO: just emit directly from svga_set_clip_state()?
*/
- for (i = 0; i < 6; i++) {
+ for (i = 0; i < SVGA3D_MAX_CLIP_PLANES; i++) {
/* need to express the plane in D3D-style coordinate space.
* GL coords get converted to D3D coords with the matrix:
* [ 1 0 0 0 ]
EMIT_RS_FLOAT( svga, bias, DEPTHBIAS, fail );
}
- if (dirty & SVGA_NEW_CLIP) {
- /* the number of clip planes is how many planes to enable */
+ if (dirty & SVGA_NEW_RAST) {
+ /* bitmask of the enabled clip planes */
unsigned enabled = svga->curr.rast->templ.clip_plane_enable;
EMIT_RS( svga, enabled, CLIPPLANEENABLE, fail );
}
(SVGA_NEW_BLEND |
SVGA_NEW_BLEND_COLOR |
- SVGA_NEW_CLIP |
SVGA_NEW_DEPTH_STENCIL |
SVGA_NEW_STENCIL_REF |
SVGA_NEW_RAST |