ac/nir: honor ACCESS_STREAM_CACHE_POLICY for L1 and L0 caches too

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>
This commit is contained in:
Marek Olšák
2020-05-06 19:06:35 -04:00
committed by Marge Bot
parent d573d1d825
commit 2361e8e722
+1 -1
View 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;
}