diff options
author | Marek Olšák <[email protected]> | 2017-06-20 01:12:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-27 18:45:07 +0200 |
commit | 77d2a98353462241306452cc36229f891c4b5af6 (patch) | |
tree | 0c04e455016ab017da38f1278628dd9a3e929f63 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | dbe45e118027d11bc3fabddf7c64a262694b41af (diff) |
Revert "radeonsi: use uint32_t to declare si_shader_key.opt.kill_outputs"
This reverts commit 7b2240ac9ce3ba9bd86f4ae8aac53af8878c0b10.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 47e8389e197..42b08bfb845 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2276,7 +2276,6 @@ static void si_llvm_export_vs(struct lp_build_tgsi_context *bld_base, semantic_name = outputs[i].semantic_name; semantic_index = outputs[i].semantic_index; bool export_param = true; - unsigned id; switch (semantic_name) { case TGSI_SEMANTIC_POSITION: /* ignore these */ @@ -2290,8 +2289,8 @@ static void si_llvm_export_vs(struct lp_build_tgsi_context *bld_base, break; /* fall through */ default: - id = si_shader_io_get_unique_index(semantic_name, semantic_index); - if (shader->key.opt.kill_outputs[id / 32] & (1u << (id % 32))) + if (shader->key.opt.kill_outputs & + (1ull << si_shader_io_get_unique_index(semantic_name, semantic_index))) export_param = false; } @@ -5371,8 +5370,7 @@ static void si_dump_shader_key(unsigned processor, const struct si_shader *shade processor == PIPE_SHADER_TESS_EVAL || processor == PIPE_SHADER_VERTEX) && !key->as_es && !key->as_ls) { - fprintf(f, " opt.kill_outputs[0] = 0x%x\n", key->opt.kill_outputs[0]); - fprintf(f, " opt.kill_outputs[1] = 0x%x\n", key->opt.kill_outputs[1]); + fprintf(f, " opt.kill_outputs = 0x%"PRIx64"\n", key->opt.kill_outputs); fprintf(f, " opt.clip_disable = %u\n", key->opt.clip_disable); } } |