aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-31 21:16:12 -0400
committerMarek Olšák <[email protected]>2019-08-12 14:52:17 -0400
commit9fb2fd0b433a47a6460668f3ecfae014cfacc5df (patch)
treef71953461a5728734020851b4b88f3e014d399d0 /src/amd
parent902dd50cf0f31fe1e730ee077c9e23716d06e066 (diff)
compiler: add ACCESS_STREAM_CACHE_POLICY
radeonsi will use this. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 42ca6a41df8..440d4ec9e5e 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -1549,6 +1549,9 @@ static unsigned get_cache_policy(struct ac_nir_context *ctx,
cache_policy |= ac_glc;
}
+ if (access & ACCESS_STREAM_CACHE_POLICY)
+ cache_policy |= ac_slc;
+
return cache_policy;
}