anv: only use compressed memory types on Xe2+

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 252cac1e5c ("anv: avoid memory type changes with INTEL_DEBUG=noccs")
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35615>
(cherry picked from commit bfee389f0c)
This commit is contained in:
Lionel Landwerlin 2025-06-18 23:15:25 +03:00 committed by Eric Engestrom
parent be6ede15eb
commit cd001c54a5
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 |