diff options
author | Michel Dänzer <[email protected]> | 2013-08-08 16:58:00 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-08-15 17:53:50 +0200 |
commit | 2f98dc223f625f6df79268848c46af7f224fe7e9 (patch) | |
tree | cfe1f25e942fae49c89487784b78d8fd34ad9395 /src/gallium/drivers/radeonsi/radeonsi_shader.h | |
parent | b00269aa5887b88d2e037d6bfa374779902f8743 (diff) |
radeonsi: Don't export unused clip distance vectors from vertex shader
E.g. the Source engine seems to always write to gl_ClipVertex, but normally
doesn't enable any GL_CLIP_DISTANCEn states. This change removes some
irrelevant parts from the generated vertex shader code in such cases.
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.h | 1 |
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 f28a0ea5443..2d4468a2f37 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.h +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h @@ -128,6 +128,7 @@ union si_shader_key { } ps; struct { unsigned instance_divisors[PIPE_MAX_ATTRIBS]; + unsigned ucps_enabled:2; } vs; }; |