summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/failover/fo_state_emit.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2010-02-10 21:17:46 +0100
committerRoland Scheidegger <[email protected]>2010-02-10 21:17:46 +0100
commit5365d4189535b91f6a0681ac150666e2ac6265a9 (patch)
tree2cdf708f3ceafa94c9b27d1fa270db753a3662fc /src/gallium/drivers/failover/fo_state_emit.c
parentdfc02e3784e521c07a22ff2ffc4bf02f022e9898 (diff)
fo: adapt to stencil ref changes
Diffstat (limited to 'src/gallium/drivers/failover/fo_state_emit.c')
-rw-r--r--src/gallium/drivers/failover/fo_state_emit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/failover/fo_state_emit.c b/src/gallium/drivers/failover/fo_state_emit.c
index a3341e33f80..5c000808425 100644
--- a/src/gallium/drivers/failover/fo_state_emit.c
+++ b/src/gallium/drivers/failover/fo_state_emit.c
@@ -65,7 +65,10 @@ failover_state_emit( struct failover_context *failover )
if (failover->dirty & FO_NEW_DEPTH_STENCIL)
failover->sw->bind_depth_stencil_alpha_state( failover->sw,
- failover->depth_stencil->sw_state );
+ failover->depth_stencil->sw_state );
+
+ if (failover->dirty & FO_NEW_STENCIL_REF)
+ failover->sw->set_stencil_ref( failover->sw, &failover->stencil_ref );
if (failover->dirty & FO_NEW_FRAMEBUFFER)
failover->sw->set_framebuffer_state( failover->sw, &failover->framebuffer );