diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 3a59d839eb6..799c2b0ecb9 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -1257,6 +1257,8 @@ LLVMValueRef ac_build_buffer_load_format(struct ac_llvm_context *ctx, LLVMValueR if (tfe) { assert(!d16); + cache_policy = get_load_cache_policy(ctx, cache_policy); + char code[256]; /* The definition in the assembly and the one in the constraint string * differs because of an assembler bug.