summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_shader.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2013-08-07 18:14:16 +0200
committerMichel Dänzer <[email protected]>2013-08-15 17:42:26 +0200
commitb00269aa5887b88d2e037d6bfa374779902f8743 (patch)
treee5f3a59d7563f4fba6deb86774523ec6e4d3e1e6 /src/gallium/drivers/radeonsi/radeonsi_shader.h
parentabdd32dcd5569c7caa393acd21753e03de24047f (diff)
radeonsi: Don't leave gaps between position exports from vertex shader
If the vertex shader exports clip distances but not point size, use position exports 1/2 instead of 2/3 for the clip distances. Fixes geometry corruption in that case. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66974 Cc: [email protected] Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h
index 60a48f407e4..f28a0ea5443 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h
@@ -113,6 +113,7 @@ struct si_shader {
bool vs_out_misc_write;
bool vs_out_point_size;
unsigned nr_cbufs;
+ unsigned nr_pos_exports;
unsigned clip_dist_write;
};