summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2022-04-26 23:21:08 -0400
committerDylan Baker <dylan.c.baker@intel.com>2022-05-04 16:03:32 -0700
commit9e99274fd699ddec3d2d3480181cdc5b77b0aeea (patch)
tree54f8cb8a7521c6f13a660f9488b2695f99d54ddd /src
parenteb7d783b0257292c97f2c6eec61dccae23b68d66 (diff)
ac/llvm: set the correct cache policy for sparse buffer loads
The DLC bit was missing on gfx10. Fixes: 6d5e26752c664c "ac/nir: implement sparse image/texture loads" Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16215> (cherry picked from commit 0cd59c7cb0e75c100e8540cc89f5fc80486190fe)
Diffstat (limited to 'src')
-rw-r--r--src/amd/llvm/ac_llvm_build.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c
index a727052a7bb..fc51dca73af 100644
--- a/src/amd/llvm/ac_llvm_build.c
+++ b/src/amd/llvm/ac_llvm_build.c
@@ -1290,6 +1290,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.