summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915/i915_state_immediate.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-02-11 18:16:09 +0100
committerRoland Scheidegger <sroland@vmware.com>2010-02-11 18:16:09 +0100
commit388109c04dc92ed81d1dbe6209120c95bdbc83cd (patch)
tree293a3b675b9b9edf88981a578adeef7fb1a02fae /src/gallium/drivers/i915/i915_state_immediate.c
parent263406addb90ca7599ddfb210944ab0dd63b973c (diff)
i915g: adapt to stencil ref changes
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_immediate.c')
-rw-r--r--src/gallium/drivers/i915/i915_state_immediate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state_immediate.c b/src/gallium/drivers/i915/i915_state_immediate.c
index 8c16bb4e271..d2c6f151434 100644
--- a/src/gallium/drivers/i915/i915_state_immediate.c
+++ b/src/gallium/drivers/i915/i915_state_immediate.c
@@ -129,6 +129,8 @@ static void upload_S5( struct i915_context *i915 )
unsigned LIS5 = 0;
LIS5 |= i915->depth_stencil->stencil_LIS5;
+ /* hope it's safe to set stencil ref value even if stencil test is disabled? */
+ LIS5 |= i915->stencil_ref.ref_value[0] << S5_STENCIL_REF_SHIFT;
LIS5 |= i915->blend->LIS5;