From 9fb2fd0b433a47a6460668f3ecfae014cfacc5df Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 31 Jul 2019 21:16:12 -0400 Subject: compiler: add ACCESS_STREAM_CACHE_POLICY radeonsi will use this. Reviewed-by: Connor Abbott --- src/amd/common/ac_nir_to_llvm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/amd') 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; } -- cgit v1.2.3