Lines Matching refs:next_buffer
983 int next_buffer = -1; in NineSwapChain9_Present() local
985 while (next_buffer == -1) { in NineSwapChain9_Present()
991 next_buffer = i; in NineSwapChain9_Present()
995 if (next_buffer == -1) { in NineSwapChain9_Present()
1002 if (This->tasks[next_buffer]) in NineSwapChain9_Present()
1003 _mesa_threadpool_wait_for_task(This->pool, &(This->tasks[next_buffer])); in NineSwapChain9_Present()
1004 assert(!*This->pending_presentation[next_buffer] && !This->tasks[next_buffer]); in NineSwapChain9_Present()
1005 This->tasks[next_buffer] = This->tasks[0]; in NineSwapChain9_Present()
1007 pending_presentation_temp = This->pending_presentation[next_buffer]; in NineSwapChain9_Present()
1008 This->pending_presentation[next_buffer] = This->pending_presentation[0]; in NineSwapChain9_Present()
1014 This->buffers[0], This->buffers[next_buffer]->base.resource); in NineSwapChain9_Present()
1016 This->buffers[next_buffer], res); in NineSwapChain9_Present()
1021 pipe_resource_reference(&This->present_buffers[0], This->present_buffers[next_buffer]); in NineSwapChain9_Present()
1022 pipe_resource_reference(&This->present_buffers[next_buffer], res); in NineSwapChain9_Present()
1027 This->present_handles[0] = This->present_handles[next_buffer]; in NineSwapChain9_Present()
1028 This->present_handles[next_buffer] = handle_temp; in NineSwapChain9_Present()