mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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 b4f5a04223)
This commit is contained in:
parent
f71ba676b7
commit
1b3ab37a93
2 changed files with 3 additions and 3 deletions
|
|
@ -764,7 +764,7 @@
|
|||
"description": "anv: don't expose the compressed memory types when DEBUG_NO_CCS",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue