Skip to content

vulkan: Add VK_EXT_display_control and VK_EXT_display_surface_counter

Keith Packard dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vulkan: Add VK_EXT_display_surface_counter [v4]src/vulkan/wsi/wsi_common.c src/vulkan/wsi/wsi_common.h src/vulkan/wsi/wsi_common_display.c +3 more+102 -02 replies
2/7anv: Add VK_EXT_display_surface_counter to anv driver [v2]src/intel/vulkan/anv_extensions.py src/intel/vulkan/anv_wsi.c+13 -00 replies
3/7radv: Add VK_EXT_display_surface_counter to radv driversrc/amd/vulkan/radv_extensions.py src/amd/vulkan/radv_wsi.c+13 -00 replies
4/7anv: Support wait for heterogeneous list of fences [v2]src/intel/vulkan/anv_queue.c+88 -178 replies
5/7vulkan: add VK_EXT_display_control [v5]src/vulkan/wsi/wsi_common.h src/vulkan/wsi/wsi_common_display.c src/vulkan/wsi/wsi_common_display.h+345 -14 replies
6/7anv: add VK_EXT_display_control to anv driver [v2]src/intel/vulkan/anv_extensions.py src/intel/vulkan/anv_private.h src/intel/vulkan/anv_queue.c +1 more+124 -04 replies
7/7radv: add VK_EXT_display_control to radv driver [v3]src/amd/vulkan/radv_device.c src/amd/vulkan/radv_extensions.py src/amd/vulkan/radv_private.h +1 more+167 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] vulkan: Add VK_EXT_display_control and VK_EXT_display_surface_counter

Here's a couple of reasonably straightforward extensions implemented for both anv and radv drivers.

VK_EXT_display_surface_counter is a very simple extension which adds an API, vkGetPhysicalSurfaceCapabilities2EXT, to extend the existing vkGetPhysicalDeviceSurfaceCapabilitiesKHR and vkGetPhysicalDeviceSurfaceCapablities2KHR interfaces.

The new interface uses a slightly different structure that includes a new flags word, "supportedSurfaceCounters". This new field describes the counters available from the underlying WSI layer. As this extension doesn't provide any counters itself, each WSI layer initializes this to zero for now.

VK_EXT_display_control is an extension specific to display surfaces (those created via the KHR_display extension). This extension adds DPMS support and fences which signal when vblank or monitor hotplug events happen.

I've implemented the DPMS support and the vblank fence stuff; I haven't bothered hooking up the monitor hotplug bits, although it would be fairly simple.

To make the fences work on anv, I had to refactor the existing fence waiting code to add the ability to spin waiting for any of a set of heterogeneous fences (a mixture of syncobj and bo fences) to become ready; this mirrors the same functionality in the radv driver, although anv hadn't needed it before as it only supported homogenous fence types (either all syncobj or all bo).

I've created a separate patch for this refactoring to try and reduce the difficulty in reviewing that part.

-keith

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev