summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.h
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2012-01-15 09:29:50 -0500
committerDave Airlie <[email protected]>2012-01-15 16:19:42 +0000
commit91d47296967ebfaf685f3870998ea0a1450ecf55 (patch)
treee66b4f6507dac03f89a6cb2fc2d95825d2ef493f /src/gallium/drivers/r600/r600_shader.h
parent725a820b926575265e6790601a0defd9c30947dc (diff)
r600g: implement clip distances
Signed-off-by: Alex Deucher <[email protected]> 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h
index 530a77604fe..323f94810f6 100644
--- a/src/gallium/drivers/r600/r600_shader.h
+++ b/src/gallium/drivers/r600/r600_shader.h
@@ -34,6 +34,7 @@ struct r600_shader_io {
unsigned interpolate;
boolean centroid;
unsigned lds_pos; /* for evergreen */
+ unsigned write_mask;
};
struct r600_shader {
@@ -46,9 +47,14 @@ struct r600_shader {
struct r600_shader_io output[32];
boolean uses_kill;
boolean fs_write_all;
+ boolean vs_prohibit_ucps;
boolean clamp_color;
boolean two_side;
unsigned nr_cbufs;
+ /* bit n is set if the shader writes gl_ClipDistance[n] */
+ unsigned clip_dist_write;
+ /* flag is set if the shader writes VS_OUT_MISC_VEC (e.g. for PSIZE) */
+ boolean vs_out_misc_write;
};
#endif