diff options
author | Eric Anholt <[email protected]> | 2014-09-18 12:22:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-18 17:46:43 -0700 |
commit | 19589147ef660c0bf7fcc52ca82dfbbadf3a9a23 (patch) | |
tree | 6917d74dcc35a26dd07df2b8a3314a6b37ba418a /src/gallium/drivers/vc4/vc4_draw.c | |
parent | 6e39854e23d56e70c5ec68fe97ffce4c5a077183 (diff) |
vc4: Add support for stencil operations.
While depth test state is passed through the fragment shader as sideband,
data, the stencil test state has to be set by the fragment shader itself.
Many tests are still failing, but this gets most of hiz/ passing.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index 90d98b37b01..c88e43cf823 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -190,6 +190,8 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) if (vc4->zsa && vc4->zsa->base.depth.enabled) { vc4->resolve |= PIPE_CLEAR_DEPTH; } + if (vc4->zsa && vc4->zsa->base.stencil[0].enabled) + vc4->resolve |= PIPE_CLEAR_STENCIL; vc4->resolve |= PIPE_CLEAR_COLOR0; vc4->shader_rec_count++; |