ac/llvm: fix tcs_wave_id unpacking on gfx11

no effect on behavior because the higher bits are always zero

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16990>
This commit is contained in:
Marek Olšák 2022-05-19 13:01:56 -04:00 committed by Marge Bot
parent ae432b67b7
commit 7d8847d963
1 changed files with 1 additions and 1 deletions

View File

@ -3038,7 +3038,7 @@ static LLVMValueRef visit_load_local_invocation_index(struct ac_nir_context *ctx
{
if (ctx->args->tcs_wave_id.used) {
return ac_build_imad(&ctx->ac,
ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->tcs_wave_id), 0, 5),
ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->tcs_wave_id), 0, 3),
LLVMConstInt(ctx->ac.i32, ctx->ac.wave_size, 0),
ac_get_thread_id(&ctx->ac));
} else if (ctx->args->vs_rel_patch_id.used) {