Mesa (main): dzn: fill in depth/stencil resolve props

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 18 16:21:22 UTC 2022


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Jun 13 14:33:35 2022 +0200

dzn: fill in depth/stencil resolve props

Before enabling Vulkan 1.2 support, we need to fix the TODO in here.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16998>

---

 src/microsoft/vulkan/dzn_device.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index 378c4d4b541..d75ba42a5e8 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -1617,6 +1617,15 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
       .maxDescriptorSetUpdateAfterBindSampledImages = 0,
       .maxDescriptorSetUpdateAfterBindStorageImages = 0,
       .maxDescriptorSetUpdateAfterBindInputAttachments = 0,
+
+      /* FIXME: add support for VK_RESOLVE_MODE_SAMPLE_ZERO_BIT,
+       * which is required by the VK 1.2 spec.
+       */
+      .supportedDepthResolveModes = VK_RESOLVE_MODE_AVERAGE_BIT,
+
+      .supportedStencilResolveModes = VK_RESOLVE_MODE_SAMPLE_ZERO_BIT,
+      .independentResolveNone = false,
+      .independentResolve = false,
    };
 
    snprintf(core_1_2.driverName, VK_MAX_DRIVER_NAME_SIZE, "Dozen");



More information about the mesa-commit mailing list