vc4: Add support for fragment discards

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 22 August 2014 12:16 UTC

Fixes piglit glsl-fs-discard-01 and -03, and allows a lot of mesa demos to start running. glsl-fs-discard-02 has a problem where the first tile is not getting stored on the first render.

e51e20c vc4: Add support for fragment discards.
src/gallium/drivers/vc4/vc4_program.c | 24 ++++++++++++++++++++++++
src/gallium/drivers/vc4/vc4_qir.c | 1 +
src/gallium/drivers/vc4/vc4_qir.h | 2 ++
src/gallium/drivers/vc4/vc4_qpu_emit.c | 16 ++++++++++++++++
4 files changed, 43 insertions(+)

Upstream: cgit.freedesktop.org


  • Share