summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_shader.h
diff options
context:
space:
mode:
authorVadim Girlin <vadimgirlin@gmail.com>2011-11-04 21:24:02 +0400
committerAlex Deucher <alexander.deucher@amd.com>2011-11-04 16:23:19 -0400
commitc15f8569fddac5f8aee77863922fd5bb992cfe8a (patch)
tree60aeae1bcca427c2131047163275fd179be2e438 /src/gallium/drivers/r600/r600_shader.h
parent2df15d07c04e768b15c33e142502e70cf1bf4ace (diff)
r600g: precalculate semantic indices for SPI setup
There is no need to duplicate semantic mapping which is done in hw, so get rid of r600_find_vs_semantic_index. TGSI name/sid pair is mapped to the 8-bit semantic index for SPI. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r--src/gallium/drivers/r600/r600_shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h
index ada369ade68..9990ba646af 100644
--- a/src/gallium/drivers/r600/r600_shader.h
+++ b/src/gallium/drivers/r600/r600_shader.h
@@ -30,6 +30,7 @@ struct r600_shader_io {
unsigned gpr;
unsigned done;
int sid;
+ int spi_sid;
unsigned interpolate;
boolean centroid;
unsigned lds_pos; /* for evergreen */
@@ -40,7 +41,6 @@ struct r600_shader {
struct r600_bytecode bc;
unsigned ninput;
unsigned noutput;
- unsigned npos;
unsigned nlds;
struct r600_shader_io input[32];
struct r600_shader_io output[32];