Mesa (main): anv: silence wsi debug logging

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 27 13:31:32 UTC 2022


Module: Mesa
Branch: main
Commit: fe3984b8cde30b21d719bff57429fba1751c454e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe3984b8cde30b21d719bff57429fba1751c454e

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jan 26 15:46:36 2022 -0500

anv: silence wsi debug logging

this is triggered by mesa's own wsi handling, so stop printing nonsense

Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14743>

---

 src/intel/vulkan/anv_device.c  | 6 +++++-
 src/intel/vulkan/anv_formats.c | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 5f0d7e01e48..f0995a894e2 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -3653,7 +3653,11 @@ VkResult anv_AllocateMemory(
       }
 
       default:
-         anv_debug_ignored_stype(ext->sType);
+         if (ext->sType != VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA)
+            /* this isn't a real enum value,
+             * so use conditional to avoid compiler warn
+             */
+            anv_debug_ignored_stype(ext->sType);
          break;
       }
    }
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 1bf60182967..8e264085b1c 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -1352,7 +1352,8 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2(
          external_info = (const void *) s;
          break;
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT:
-         /* anv_get_image_format_properties will handle this */
+      case VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR:
+         /* anv_get_image_format_properties will handle these */
          break;
       case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT:
          /* Ignore but don't warn */



More information about the mesa-commit mailing list