summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2022-07-18 22:56:13 -0700
committerMarge Bot <emma+marge@anholt.net>2022-11-28 21:54:20 +0000
commitcbae3052587cddc3a099130dd1550fdb69662db0 (patch)
tree8cdebe17f28b7ec13693b32a33fa2d8c4c1252bf /src/intel
parented84f163ff70f31b1b8eefbfc99e99ccb78f6478 (diff)
anv, iris: Make use of devinfo::has_caching_uapi
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19911>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c
index a83ecf0b3b3..6ffdd7a24ac 100644
--- a/src/intel/vulkan/anv_allocator.c
+++ b/src/intel/vulkan/anv_allocator.c
@@ -1527,7 +1527,7 @@ anv_device_alloc_bo(struct anv_device *device,
* I915_CACHING_CACHED, which on non-LLC means snooped so there's no
* need to do this there.
*/
- if (!device->info->has_llc) {
+ if (device->info->has_caching_uapi && !device->info->has_llc) {
anv_gem_set_caching(device, new_bo.gem_handle,
I915_CACHING_CACHED);
}