aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/llvm
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-05-06 19:06:35 -0400
committerMarge Bot <[email protected]>2020-05-15 22:12:35 +0000
commit2361e8e72278cfe256f80946516be7a48534e6d5 (patch)
treedde2b2f02fa2c8ccf02ec71d2e7984cb68338fd2 /src/amd/llvm
parentd573d1d82524b8a2e5f56938069cabc0f0176a0e (diff)
ac/nir: honor ACCESS_STREAM_CACHE_POLICY for L1 and L0 caches too
Reviewed-by: Samuel Pitoiset <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4935>
Diffstat (limited to 'src/amd/llvm')
-rw-r--r--src/amd/llvm/ac_nir_to_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c
index 6f0d253d9c7..eec0a10efc8 100644
--- a/src/amd/llvm/ac_nir_to_llvm.c
+++ b/src/amd/llvm/ac_nir_to_llvm.c
@@ -1680,7 +1680,7 @@ static unsigned get_cache_policy(struct ac_nir_context *ctx,
}
if (access & ACCESS_STREAM_CACHE_POLICY)
- cache_policy |= ac_slc;
+ cache_policy |= ac_slc | ac_glc;
return cache_policy;
}