ac/nir: honor ACCESS_STREAM_CACHE_POLICY for L1 and L0 caches too
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 May 2020 23:06:35 +0000 (19:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 22:12:35 +0000 (22:12 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4935>

src/amd/llvm/ac_nir_to_llvm.c

index 6f0d253d9c7a38c54a51ae37b4013546b5eb45fb..eec0a10efc86ab6e83cb444c2f5afb9ef8274ef1 100644 (file)
@@ -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;
 }