diff options
author | Christian König <[email protected]> | 2013-03-21 18:02:52 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2013-04-02 13:01:43 +0200 |
commit | e4ed58763ab6e948a20d6e66a54d10466dd0c4cc (patch) | |
tree | 1a4f36cbd62796526257d9a86297f0724193f205 /src/gallium/drivers/radeonsi/radeonsi_shader.h | |
parent | 83df955ca9f331965107c424c2e90f27e9161e3a (diff) |
radeonsi: add instanceid support
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Tested-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_shader.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h index fe771cee660..8f5efd01135 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.h +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h @@ -44,7 +44,10 @@ /* VS only parameters */ #define SI_PARAM_VERTEX_BUFFER 3 -#define SI_PARAM_VERTEX_INDEX 4 +#define SI_PARAM_VERTEX_ID 4 +#define SI_PARAM_DUMMY_0 5 +#define SI_PARAM_DUMMY_1 6 +#define SI_PARAM_INSTANCE_ID 7 /* PS only parameters */ #define SI_PARAM_PRIM_MASK 3 @@ -101,6 +104,7 @@ struct si_shader { unsigned ninterp; bool uses_kill; + bool uses_instanceid; bool fs_write_all; unsigned nr_cbufs; }; |