diff options
author | Chris Forbes <[email protected]> | 2013-05-13 21:46:50 +1200 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-05-15 22:01:06 +1200 |
commit | f819ec46d57fd92012b2dca2e23232031bd1f621 (patch) | |
tree | db500fe7570524bfe03d7cba08e1488a9bc0e164 /src/mesa/drivers/dri/i965/gen6_cc.c | |
parent | 96a1bf1ba3b3e556abe2e7303b8b785e93e68985 (diff) |
intel: Use accessor for stencil reference values
NOTE: This is a candidate for stable branches.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_cc.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_cc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_cc.c b/src/mesa/drivers/dri/i965/gen6_cc.c index 7ac5d5ff72d..e4ec1707f09 100644 --- a/src/mesa/drivers/dri/i965/gen6_cc.c +++ b/src/mesa/drivers/dri/i965/gen6_cc.c @@ -33,6 +33,7 @@ #include "main/macros.h" #include "main/enums.h" #include "main/glformats.h" +#include "main/stencil.h" static void gen6_upload_blend_state(struct brw_context *brw) @@ -251,8 +252,8 @@ gen6_upload_color_calc_state(struct brw_context *brw) UNCLAMPED_FLOAT_TO_UBYTE(cc->cc1.alpha_ref_fi.ui, ctx->Color.AlphaRef); /* _NEW_STENCIL */ - cc->cc0.stencil_ref = ctx->Stencil.Ref[0]; - cc->cc0.bf_stencil_ref = ctx->Stencil.Ref[ctx->Stencil._BackFace]; + cc->cc0.stencil_ref = _mesa_get_stencil_ref(ctx, 0); + cc->cc0.bf_stencil_ref = _mesa_get_stencil_ref(ctx, ctx->Stencil._BackFace); /* _NEW_COLOR */ cc->constant_r = ctx->Color.BlendColorUnclamped[0]; |