vc4: Add support for stencil operations.
authorEric Anholt <eric@anholt.net>
Thu, 18 Sep 2014 19:22:07 +0000 (12:22 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Sep 2014 00:46:43 +0000 (17:46 -0700)
commit19589147ef660c0bf7fcc52ca82dfbbadf3a9a23
tree6917d74dcc35a26dd07df2b8a3314a6b37ba418a
parent6e39854e23d56e70c5ec68fe97ffce4c5a077183
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.
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/drivers/vc4/vc4_qpu_emit.c
src/gallium/drivers/vc4/vc4_simulator_validate_shaders.c
src/gallium/drivers/vc4/vc4_state.c