diff options
author | Timothy Arceri <[email protected]> | 2018-02-02 10:23:46 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-07 08:43:08 +1100 |
commit | c8066cdfa7e1f79a30869ea37ac0bd04763b93aa (patch) | |
tree | 327c7004504231dfbb9bf56d3c1849b6bef5fc1e /src/gallium/drivers/radeonsi/si_shader.c | |
parent | fa5239c1534a6ce5bf85602dddddba6df6d67724 (diff) |
ac/radeonsi: add local_invocation_ids to the abi
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index c421d4405e0..c518e35ab1a 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2161,7 +2161,7 @@ void si_load_system_value(struct si_shader_context *ctx, } case TGSI_SEMANTIC_THREAD_ID: - value = LLVMGetParam(ctx->main_fn, ctx->param_thread_id); + value = ctx->abi.local_invocation_ids; break; case TGSI_SEMANTIC_HELPER_INVOCATION: @@ -4886,7 +4886,7 @@ static void create_function(struct si_shader_context *ctx) add_arg_assign(&fninfo, ARG_SGPR, ctx->i32, &ctx->abi.workgroup_ids[i]); } - ctx->param_thread_id = add_arg(&fninfo, ARG_VGPR, v3i32); + add_arg_assign(&fninfo, ARG_VGPR, v3i32, &ctx->abi.local_invocation_ids); break; default: assert(0 && "unimplemented shader"); |