Mesa (master): ac/nir: honor ACCESS_STREAM_CACHE_POLICY for L1 and L0 caches too
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 15 22:24:22 UTC 2020
Module: Mesa
Branch: master
Commit: 2361e8e72278cfe256f80946516be7a48534e6d5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2361e8e72278cfe256f80946516be7a48534e6d5
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed May 6 19:06:35 2020 -0400
ac/nir: honor ACCESS_STREAM_CACHE_POLICY for L1 and L0 caches too
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4935>
---
src/amd/llvm/ac_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c
index 6f0d253d9c7..eec0a10efc8 100644
--- a/src/amd/llvm/ac_nir_to_llvm.c
+++ b/src/amd/llvm/ac_nir_to_llvm.c
@@ -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;
}
More information about the mesa-commit
mailing list