Mesa (main): lavapipe: add the separate depth/stencil layout enable.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 13 02:38:31 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Jul 13 12:09:02 2021 +1000

lavapipe: add the separate depth/stencil layout enable.

This was missing.

Fixes: ac07ad8414cd ("lavapipe: implement KHR_separate_depth_stencil_layouts")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11840>

---

 src/gallium/frontends/lavapipe/lvp_device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index 064b2f97d6a..58ea8238a5d 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -626,6 +626,12 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2(
          features->imagelessFramebuffer = true;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES_KHR: {
+         VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesKHR *features =
+            (VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesKHR *)ext;
+         features->separateDepthStencilLayouts = true;
+         break;
+      }
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT: {
          VkPhysicalDeviceCustomBorderColorFeaturesEXT *features =
             (VkPhysicalDeviceCustomBorderColorFeaturesEXT *)ext;



More information about the mesa-commit mailing list