---

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

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to