projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa4bdd
)
ac: handle cast derefs
author
Dave Airlie
<airlied@redhat.com>
Mon, 19 Nov 2018 04:16:16 +0000
(14:16 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 20 Nov 2018 22:54:46 +0000
(08:54 +1000)
Just give back the same value for now.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_nir_to_llvm.c
b/src/amd/common/ac_nir_to_llvm.c
index 0416043eaf32ff165e4d578f46d46a48af74cf08..a109f5a8156a44f49a91d4efdeb99883455f7e56 100644
(file)
--- 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");
}