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>
This commit is contained in:
parent
3598a2907c
commit
f82b6c6272
|
@ -485,7 +485,8 @@ VkResult radv_QueuePresentKHR(
|
||||||
fence->submitted = true;
|
fence->submitted = true;
|
||||||
|
|
||||||
result = swapchain->queue_present(swapchain,
|
result = swapchain->queue_present(swapchain,
|
||||||
pPresentInfo->pImageIndices[i]);
|
pPresentInfo->pImageIndices[i],
|
||||||
|
NULL);
|
||||||
/* TODO: What if one of them returns OUT_OF_DATE? */
|
/* TODO: What if one of them returns OUT_OF_DATE? */
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -380,7 +380,8 @@ VkResult anv_QueuePresentKHR(
|
||||||
anv_QueueSubmit(_queue, 0, NULL, swapchain->fences[0]);
|
anv_QueueSubmit(_queue, 0, NULL, swapchain->fences[0]);
|
||||||
|
|
||||||
item_result = swapchain->queue_present(swapchain,
|
item_result = swapchain->queue_present(swapchain,
|
||||||
pPresentInfo->pImageIndices[i]);
|
pPresentInfo->pImageIndices[i],
|
||||||
|
NULL);
|
||||||
/* TODO: What if one of them returns OUT_OF_DATE? */
|
/* TODO: What if one of them returns OUT_OF_DATE? */
|
||||||
if (pPresentInfo->pResults != NULL)
|
if (pPresentInfo->pResults != NULL)
|
||||||
pPresentInfo->pResults[i] = item_result;
|
pPresentInfo->pResults[i] = item_result;
|
||||||
|
|
|
@ -69,7 +69,8 @@ struct wsi_swapchain {
|
||||||
uint64_t timeout, VkSemaphore semaphore,
|
uint64_t timeout, VkSemaphore semaphore,
|
||||||
uint32_t *image_index);
|
uint32_t *image_index);
|
||||||
VkResult (*queue_present)(struct wsi_swapchain *swap_chain,
|
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,
|
void (*get_image_and_linear)(struct wsi_swapchain *swapchain,
|
||||||
int imageIndex,
|
int imageIndex,
|
||||||
VkImage *image,
|
VkImage *image,
|
||||||
|
|
|
@ -578,7 +578,8 @@ static const struct wl_callback_listener frame_listener = {
|
||||||
|
|
||||||
static VkResult
|
static VkResult
|
||||||
wsi_wl_swapchain_queue_present(struct wsi_swapchain *wsi_chain,
|
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;
|
struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain;
|
||||||
|
|
||||||
|
|
|
@ -860,7 +860,8 @@ x11_acquire_next_image(struct wsi_swapchain *anv_chain,
|
||||||
|
|
||||||
static VkResult
|
static VkResult
|
||||||
x11_queue_present(struct wsi_swapchain *anv_chain,
|
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;
|
struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue