broadcom/vc5: Fix pasteo in front stencil ref value setup.
authorEric Anholt <eric@anholt.net>
Tue, 7 Nov 2017 23:37:46 +0000 (15:37 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 18 Nov 2017 00:09:55 +0000 (16:09 -0800)
Fixes piglit masked-clear.

src/gallium/drivers/vc5/vc5_emit.c

index ecb1b25a55215a3f9846274f218513129ce79a4a..72b5d85880a29c03db74b99452e02d727c66bc38 100644 (file)
@@ -437,7 +437,7 @@ vc5_emit_state(struct pipe_context *pctx)
                         cl_emit_with_prepacked(&job->bcl, STENCIL_CONFIG,
                                                vc5->zsa->stencil_front, config) {
                                 config.stencil_ref_value =
-                                        vc5->stencil_ref.ref_value[1];
+                                        vc5->stencil_ref.ref_value[0];
                         }
                 }