From 8c716525cf82ae7a00d7ec00d20998dd80f2058f Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 19 Oct 2022 18:34:12 +0100 Subject: [PATCH] ac/llvm: ignore g16 if the image opcode doesn't use derivatives g16 is irrelevant in this case. Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Part-of: --- src/amd/llvm/ac_llvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 6bdfb27..3f7159b 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -2139,7 +2139,7 @@ LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx, struct ac_image_ a->opcode != ac_image_atomic_cmpswap && a->opcode != ac_image_get_lod && a->opcode != ac_image_get_resinfo)); assert(!a->a16 || ctx->gfx_level >= GFX9); - assert(a->g16 == a->a16 || ctx->gfx_level >= GFX10); + assert(!a->derivs[0] || a->g16 == a->a16 || ctx->gfx_level >= GFX10); assert(!a->offset || ac_get_elem_bits(ctx, LLVMTypeOf(a->offset)) == 32); -- 2.7.4