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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user