From cd001c54a58b9a30485d9e0d998a10da39b8b30e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 18 Jun 2025 23:15:25 +0300 Subject: [PATCH] anv: only use compressed memory types on Xe2+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Fixes: 252cac1e5c ("anv: avoid memory type changes with INTEL_DEBUG=noccs") Tested-by: Ian Romanick Reviewed-by: José Roberto de Souza Part-of: (cherry picked from commit bfee389f0c73b5042a6e01b90ac511d97188f123) --- .pick_status.json | 2 +- src/intel/vulkan/xe/anv_device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 7f02ae35a57..26879da1d0d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -7614,7 +7614,7 @@ "description": "anv: only use compressed memory types on Xe2+", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "252cac1e5c4a4197d49ae29123e78ffe602a5ac9", "notes": null diff --git a/src/intel/vulkan/xe/anv_device.c b/src/intel/vulkan/xe/anv_device.c index fca775e228c..3b67ab2feab 100644 --- a/src/intel/vulkan/xe/anv_device.c +++ b/src/intel/vulkan/xe/anv_device.c @@ -154,7 +154,7 @@ anv_xe_physical_device_init_memory_types(struct anv_physical_device *device) device->memory.types[device->memory.type_count++] = (struct anv_memory_type) { .propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, .heapIndex = 0, - .compressed = true, + .compressed = device->info.ver >= 20, }; device->memory.types[device->memory.type_count++] = (struct anv_memory_type) { .propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |