diff options
author | Marek Olšák <[email protected]> | 2014-10-04 21:31:18 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-10-12 23:53:54 +0200 |
commit | 639f6b41d23483a48de67b065cbf1552595f3863 (patch) | |
tree | 58f71a96404ccdf4741c57aaf72d4d6f0e882743 /src | |
parent | fa933438a2fe19eab62a3f35b64d834b1176f8eb (diff) |
radeonsi: use tgsi_shader_info in si_shader_vs
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 76162e565f3..27b4be6fe66 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -150,6 +150,7 @@ static void si_shader_gs(struct pipe_context *ctx, struct si_shader *shader) static void si_shader_vs(struct pipe_context *ctx, struct si_shader *shader) { struct si_context *sctx = (struct si_context *)ctx; + struct tgsi_shader_info *info = &shader->selector->info; struct si_pm4_state *pm4; unsigned num_sgprs, num_user_sgprs; unsigned nparams, i, vgpr_comp_cnt; @@ -182,8 +183,8 @@ static void si_shader_vs(struct pipe_context *ctx, struct si_shader *shader) * VS is required to export at least one param and r600_shader_from_tgsi() * takes care of adding a dummy export. */ - for (nparams = 0, i = 0 ; i < shader->noutput; i++) { - switch (shader->output[i].name) { + for (nparams = 0, i = 0 ; i < info->num_outputs; i++) { + switch (info->output_semantic_name[i]) { case TGSI_SEMANTIC_CLIPVERTEX: case TGSI_SEMANTIC_POSITION: case TGSI_SEMANTIC_PSIZE: |