From 464c2d80834e4ccf7f28fb62b82a2fa13e6445fb Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 13 May 2016 14:35:33 +1000 Subject: r600: add cull distance support This passes all the tests in piglit. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/r600/r600_shader.h') 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; -- cgit v1.2.3