From cc298023c9b302a7a24ee01fe2da1c93f5b44666 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 20 Oct 2014 21:14:57 +0100 Subject: 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. --- src/gallium/drivers/vc4/vc4_state.c | 4 ++-- 1 file 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)); } } -- cgit v1.2.3