Mesa (master): ac: handle cast derefs
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 20 22:55:11 UTC 2018
Module: Mesa
Branch: master
Commit: 3486fe655a2d62e42c8a9d0571df6dff753a9af6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3486fe655a2d62e42c8a9d0571df6dff753a9af6
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Nov 19 14:16:16 2018 +1000
ac: handle cast derefs
Just give back the same value for now.
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/common/ac_nir_to_llvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 0416043eaf..a109f5a815 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");
}
More information about the mesa-commit
mailing list