summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2024-08-01 13:43:58 -0700
committerEric Engestrom <eric@engestrom.ch>2024-08-06 15:12:56 +0200
commit1b3ab37a93403af0dc0b0b7e5c4e48c8b598a0c8 (patch)
treeafcff4590d8b44a45db737070f0106ebe9556271 /src/intel
parentf71ba676b72251ad3dd3cf2a74971be5984e5681 (diff)
anv: don't expose the compressed memory types when DEBUG_NO_CCS
These memory types are useless when CCS is disabled, don't leave them there so they don't confuse applications. Backport-to: 24.2 Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30481> (cherry picked from commit b4f5a04223631be1925baea0d469b406f4fbd5ce)
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/xe/anv_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/xe/anv_device.c b/src/intel/vulkan/xe/anv_device.c
index 379567cd9f1..df6173a283a 100644
--- a/src/intel/vulkan/xe/anv_device.c
+++ b/src/intel/vulkan/xe/anv_device.c
@@ -98,7 +98,7 @@ VkResult
anv_xe_physical_device_init_memory_types(struct anv_physical_device *device)
{
if (anv_physical_device_has_vram(device)) {
- if (device->info.ver >= 20) {
+ if (device->info.ver >= 20 && !INTEL_DEBUG(DEBUG_NO_CCS)) {
device->memory.types[device->memory.type_count++] = (struct anv_memory_type) {
.propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
.heapIndex = 0,
@@ -148,7 +148,7 @@ anv_xe_physical_device_init_memory_types(struct anv_physical_device *device)
.heapIndex = 0,
};
} else {
- if (device->info.ver >= 20) {
+ if (device->info.ver >= 20 && !INTEL_DEBUG(DEBUG_NO_CCS)) {
device->memory.types[device->memory.type_count++] = (struct anv_memory_type) {
.propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
.heapIndex = 0,