radeonsi: Don't export unused clip distance vectors from vertex shader
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 8 Aug 2013 14:58:00 +0000 (16:58 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 15 Aug 2013 15:53:50 +0000 (17:53 +0200)
commit2f98dc223f625f6df79268848c46af7f224fe7e9
treecfe1f25e942fae49c89487784b78d8fd34ad9395
parentb00269aa5887b88d2e037d6bfa374779902f8743
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 <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state.c