<div dir="ltr"><div>patches 4-6 are</div><div><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 11, 2018 at 10:39 PM, Keith Packard <span dir="ltr"><<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Add support for the EXT_direct_mode_display extension. This just<br>
provides the vkReleaseDisplayEXT function.<br>
<br>
v2:<br>
Adopt Jason Ekstrand's coding conventions<br>
<br>
Declare variables at first use, eliminate extra whitespace<br>
between types and names. Wrap lines to 80 columns.<br>
<br>
Suggested-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
<br>
Signed-off-by: Keith Packard <<a href="mailto:keithp@keithp.com">keithp@keithp.com</a>><br>
---<br>
src/vulkan/wsi/wsi_common_<wbr>display.c | 18 ++++++++++++++++++<br>
src/vulkan/wsi/wsi_common_<wbr>display.h | 5 +++++<br>
2 files changed, 23 insertions(+)<br>
<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>display.c b/src/vulkan/wsi/wsi_common_<wbr>display.c<br>
index e529d2fc580..7a484c0df95 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>display.c<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>display.c<br>
@@ -1430,3 +1430,21 @@ wsi_display_finish_wsi(struct wsi_device *wsi_device,<br>
vk_free(alloc, wsi);<br>
}<br>
}<br>
+<br>
+/*<br>
+ * Implement vkReleaseDisplay<br>
+ */<br>
+VkResult<br>
+wsi_release_display(<wbr>VkPhysicalDevice physical_device,<br>
+ struct wsi_device *wsi_device,<br>
+ VkDisplayKHR display)<br>
+{<br>
+ struct wsi_display *wsi =<br>
+ (struct wsi_display *) wsi_device->wsi[VK_ICD_WSI_<wbr>PLATFORM_DISPLAY];<br>
+<br>
+ if (wsi->fd >= 0) {<br>
+ close(wsi->fd);<br>
+ wsi->fd = -1;<br>
+ }<br>
+ return VK_SUCCESS;<br>
+}<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>display.h b/src/vulkan/wsi/wsi_common_<wbr>display.h<br>
index 4bb86cf2102..dd3a098f80a 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>display.h<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>display.h<br>
@@ -74,4 +74,9 @@ wsi_create_display_surface(<wbr>VkInstance instance,<br>
const VkDisplaySurfaceCreateInfoKHR *pCreateInfo,<br>
VkSurfaceKHR *pSurface);<br>
<br>
+VkResult<br>
+wsi_release_display(<wbr>VkPhysicalDevice physical_device,<br>
+ struct wsi_device *wsi_device,<br>
+ VkDisplayKHR display);<br>
+<br>
#endif<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.17.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>