[Mesa-dev] [PATCH 111.1/129] FIXUP: ac/nir: Add deref support to image intrinsics.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sun Jun 3 23:10:07 UTC 2018


---

When removing the deref chain support you'll probably get a rebase conflict.

src_shift + 2 has to become 3 there.

 src/amd/common/ac_nir_to_llvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index de4779026a7..d23d3cd5f2e 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -2353,7 +2353,7 @@ static void visit_image_store(struct ac_nir_context *ctx,
 	} else {
 		struct ac_image_args args = {};
 		args.opcode = ac_image_store;
-		args.data[0] = ac_to_float(&ctx->ac, get_src(ctx, instr->src[2]));
+		args.data[0] = ac_to_float(&ctx->ac, get_src(ctx, instr->src[src_shift + 2]));
 		get_image_coords(ctx, instr, &args);
 		args.resource = get_image_descriptor(ctx, instr, AC_DESC_IMAGE, true);;
 		args.dim = get_ac_image_dim(&ctx->ac, glsl_get_sampler_dim(type),
-- 
2.17.0



More information about the mesa-dev mailing list