diff options
author | Dave Airlie <[email protected]> | 2018-11-19 14:16:16 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-11-21 08:54:46 +1000 |
commit | 3486fe655a2d62e42c8a9d0571df6dff753a9af6 (patch) | |
tree | 3a94a8d3e0991da20b80e0bcdbcbc3c6e3caf95e /src/amd/common | |
parent | baa4bdd3a6a7496f38c7b79235fe8ea24718729e (diff) |
ac: handle cast derefs
Just give back the same value for now.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 0416043eaf3..a109f5a8156 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -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"); } |