radv/anv/wsi: drop unneeded parameter

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Dave Airlie 2016-10-13 04:43:27 +01:00
parent aeceec54a8
commit 32d70c0d66
8 changed files with 2 additions and 8 deletions

View File

@ -224,7 +224,7 @@ VkResult radv_QueuePresentKHR(
radv_QueueSubmit(_queue, 0, NULL, swapchain->fences[0]);
result = swapchain->queue_present(swapchain, queue,
result = swapchain->queue_present(swapchain,
pPresentInfo->pImageIndices[i]);
/* TODO: What if one of them returns OUT_OF_DATE? */
if (result != VK_SUCCESS)

View File

@ -67,7 +67,6 @@ struct radv_swapchain {
uint64_t timeout, VkSemaphore semaphore,
uint32_t *image_index);
VkResult (*queue_present)(struct radv_swapchain *swap_chain,
struct radv_queue *queue,
uint32_t image_index);
};

View File

@ -552,7 +552,6 @@ static const struct wl_callback_listener frame_listener = {
static VkResult
wsi_wl_swapchain_queue_present(struct radv_swapchain *radv_chain,
struct radv_queue *queue,
uint32_t image_index)
{
struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)radv_chain;

View File

@ -599,7 +599,6 @@ x11_acquire_next_image(struct radv_swapchain *radv_chain,
static VkResult
x11_queue_present(struct radv_swapchain *radv_chain,
struct radv_queue *queue,
uint32_t image_index)
{
struct x11_swapchain *chain = (struct x11_swapchain *)radv_chain;

View File

@ -222,7 +222,7 @@ VkResult anv_QueuePresentKHR(
anv_QueueSubmit(_queue, 0, NULL, swapchain->fences[0]);
result = swapchain->queue_present(swapchain, queue,
result = swapchain->queue_present(swapchain,
pPresentInfo->pImageIndices[i]);
/* TODO: What if one of them returns OUT_OF_DATE? */
if (result != VK_SUCCESS)

View File

@ -66,7 +66,6 @@ struct anv_swapchain {
uint64_t timeout, VkSemaphore semaphore,
uint32_t *image_index);
VkResult (*queue_present)(struct anv_swapchain *swap_chain,
struct anv_queue *queue,
uint32_t image_index);
};

View File

@ -554,7 +554,6 @@ static const struct wl_callback_listener frame_listener = {
static VkResult
wsi_wl_swapchain_queue_present(struct anv_swapchain *anv_chain,
struct anv_queue *queue,
uint32_t image_index)
{
struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)anv_chain;

View File

@ -594,7 +594,6 @@ x11_acquire_next_image(struct anv_swapchain *anv_chain,
static VkResult
x11_queue_present(struct anv_swapchain *anv_chain,
struct anv_queue *queue,
uint32_t image_index)
{
struct x11_swapchain *chain = (struct x11_swapchain *)anv_chain;