diff options
author | Marek Olšák <[email protected]> | 2014-09-25 16:47:55 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-10-04 15:16:14 +0200 |
commit | 91f1a79f78f7dfa84f93abe1e3efa68535e191a3 (patch) | |
tree | 371cb60b7e9b3054da180353e538ce54e75322f4 /src | |
parent | 90611297fa9a84996a7915c588e92725272c0ce0 (diff) |
radeonsi: make the vertex shader key smaller
We only support 16 vertex attribs, not 32.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index d9a89e3fee7..c0e5cf40534 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -31,6 +31,7 @@ #include <llvm-c/Core.h> /* LLVMModuleRef */ #include "tgsi/tgsi_scan.h" +#include "si_state.h" #define SI_SGPR_CONST 0 #define SI_SGPR_SAMPLER 2 @@ -140,7 +141,7 @@ union si_shader_key { unsigned alpha_to_one:1; } ps; struct { - unsigned instance_divisors[PIPE_MAX_ATTRIBS]; + unsigned instance_divisors[SI_NUM_VERTEX_BUFFERS]; /* The mask of "get_unique_index" bits, needed for ES, * it describes how the ES->GS ring buffer is laid out. */ uint64_t gs_used_inputs; |