diff options
author | Kenneth Graunke <[email protected]> | 2013-04-02 10:28:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-04-04 15:38:19 -0700 |
commit | 32726b1af6adbde9d6512ef2400c34d544fa02a8 (patch) | |
tree | 22a9995e3e5f5cb64494f6d30c87200add0382c5 /src | |
parent | 01bd29d681c68c8b5b23dfc8f92a3ff25c51a069 (diff) |
i965: Use ctx->Stencil._WriteEnabled in DEPTH_STENCIL_STATE.
This is the same computation as the _WriteEnabled flag, so we may as
well use it.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_depthstencil.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_depthstencil.c b/src/mesa/drivers/dri/i965/gen6_depthstencil.c index 4ea517ff336..940d91f7c92 100644 --- a/src/mesa/drivers/dri/i965/gen6_depthstencil.c +++ b/src/mesa/drivers/dri/i965/gen6_depthstencil.c @@ -74,11 +74,7 @@ gen6_upload_depth_stencil_state(struct brw_context *brw) ds->ds1.bf_stencil_test_mask = ctx->Stencil.ValueMask[back]; } - /* Not really sure about this: - */ - if (ctx->Stencil.WriteMask[0] || - (ctx->Stencil._TestTwoSide && ctx->Stencil.WriteMask[back])) - ds->ds0.stencil_write_enable = 1; + ds->ds0.stencil_write_enable = ctx->Stencil._WriteEnabled; } /* _NEW_DEPTH */ |