mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 14:10:33 +01:00
ac: handle cast derefs
Just give back the same value for now. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
baa4bdd3a6
commit
3486fe655a
1 changed files with 3 additions and 0 deletions
|
|
@ -3730,6 +3730,9 @@ static void visit_deref(struct ac_nir_context *ctx,
|
|||
result = ac_build_gep0(&ctx->ac, get_src(ctx, instr->parent),
|
||||
get_src(ctx, instr->arr.index));
|
||||
break;
|
||||
case nir_deref_type_cast:
|
||||
result = get_src(ctx, instr->parent);
|
||||
break;
|
||||
default:
|
||||
unreachable("Unhandled deref_instr deref type");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue