softpipe: add support for explicit early depth testing
authorDave Airlie <airlied@redhat.com>
Mon, 21 Mar 2016 21:52:26 +0000 (07:52 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 30 Mar 2016 23:13:54 +0000 (09:13 +1000)
commit493eab76792307d066489bc1d88798f14a5df31d
tree6952c1f76854e7eaefd474cd33233e77a666adad
parent827393b76fffa352e0ff3cae077c7817d6cfbf8a
softpipe: add support for explicit early depth testing

ARB_shader_image_load_store adds support for explicit early
depth testing. However we need to make sure we don't overwrite
values using the shader written values in this case.

This fixes early depth testing in softpipe to conform with
those requirements.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_fs_exec.c
src/gallium/drivers/softpipe/sp_quad_depth_test.c
src/gallium/drivers/softpipe/sp_quad_fs.c
src/gallium/drivers/softpipe/sp_quad_pipe.c
src/gallium/drivers/softpipe/sp_state.h