diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-01-24 15:11:01 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-04-03 13:51:08 -0700 |
commit | f82b6c6272b48b4ce1f267239fa5b1cd3dfffcc7 (patch) | |
tree | af9d6edfe1a31672da755f392174c43e90fa932e /src/vulkan | |
parent | 3598a2907c071ca4642b8b247c8b0724681ab869 (diff) |
vulkan/wsi: Plumb present regions through the common code
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 3 | ||||
-rw-r--r-- | src/vulkan/wsi/wsi_common_wayland.c | 3 | ||||
-rw-r--r-- | src/vulkan/wsi/wsi_common_x11.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index 8227c1e4e9..5e77518c09 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -69,7 +69,8 @@ struct wsi_swapchain { uint64_t timeout, VkSemaphore semaphore, uint32_t *image_index); VkResult (*queue_present)(struct wsi_swapchain *swap_chain, - uint32_t image_index); + uint32_t image_index, + const VkPresentRegionKHR *damage); void (*get_image_and_linear)(struct wsi_swapchain *swapchain, int imageIndex, VkImage *image, diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index 2e47183b9d..26a137c1a0 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -578,7 +578,8 @@ static const struct wl_callback_listener frame_listener = { static VkResult wsi_wl_swapchain_queue_present(struct wsi_swapchain *wsi_chain, - uint32_t image_index) + uint32_t image_index, + const VkPresentRegionKHR *damage) { struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 4afd606338..c399aae5af 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -860,7 +860,8 @@ x11_acquire_next_image(struct wsi_swapchain *anv_chain, static VkResult x11_queue_present(struct wsi_swapchain *anv_chain, - uint32_t image_index) + uint32_t image_index, + const VkPresentRegionKHR *damage) { struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain; |