diff options
author | Eric Anholt <[email protected]> | 2014-10-20 21:14:57 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-10-21 15:16:41 +0100 |
commit | cc298023c9b302a7a24ee01fe2da1c93f5b44666 (patch) | |
tree | 1b0925a57389f75365bd15d346f71432b8b39d27 | |
parent | 48f6351940ff62c29fff618cec722e845acc86d5 (diff) |
vc4: Fix stencil writemask handling.
If the writemask doesn't compress, then we want to put in the uncompressed
writemask, not the compressed writemask failure value (all-on).
Fixes glean's stencil2 and fbo-clear-formats on stencil.
-rw-r--r-- | src/gallium/drivers/vc4/vc4_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c index 99b5b3c7271..bbbb73d4cd6 100644 --- a/src/gallium/drivers/vc4/vc4_state.c +++ b/src/gallium/drivers/vc4/vc4_state.c @@ -223,8 +223,8 @@ vc4_create_depth_stencil_alpha_state(struct pipe_context *pctx, if (front_writemask_bits == 0xff || back_writemask_bits == 0xff) { - so->stencil_uniforms[2] = (front_writemask_bits | - (back_writemask_bits << 8)); + so->stencil_uniforms[2] = (front->writemask | + (back_writemask << 8)); } } |