summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-05-13 14:35:33 +1000
committerDave Airlie <[email protected]>2017-11-21 09:00:52 +1000
commit464c2d80834e4ccf7f28fb62b82a2fa13e6445fb (patch)
tree1c6f03a46fbadfe95eed07e399f661e64d4b73cb /src/gallium/drivers/r600/r600_shader.h
parent971b3c019b7309c32048b68f61af03d1ae2b7d10 (diff)
r600: add cull distance support
This passes all the tests in piglit. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r--src/gallium/drivers/r600/r600_shader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h
index 5d6501c8d38..84449078839 100644
--- a/src/gallium/drivers/r600/r600_shader.h
+++ b/src/gallium/drivers/r600/r600_shader.h
@@ -85,7 +85,9 @@ struct r600_shader {
/* Real number of ps color exports compiled in the bytecode */
unsigned nr_ps_color_exports;
/* bit n is set if the shader writes gl_ClipDistance[n] */
+ unsigned cc_dist_mask;
unsigned clip_dist_write;
+ unsigned cull_dist_write;
boolean vs_position_window_space;
/* flag is set if the shader writes VS_OUT_MISC_VEC (e.g. for PSIZE) */
boolean vs_out_misc_write;