uint64_t send_sbc;
uint64_t last_present_msc;
uint32_t stamp;
+ int sent_image_count;
bool has_present_queue;
bool has_acquire_queue;
for (unsigned i = 0; i < chain->base.image_count; i++) {
if (chain->images[i].pixmap == idle->pixmap) {
chain->images[i].busy = false;
+ chain->sent_image_count--;
+ assert(chain->sent_image_count >= 0);
if (chain->has_acquire_queue)
wsi_queue_push(&chain->acquire_queue, i);
break;
xshmfence_reset(image->shm_fence);
+ ++chain->sent_image_count;
+ assert(chain->sent_image_count <= chain->base.image_count);
+
++chain->send_sbc;
+
xcb_void_cookie_t cookie =
xcb_present_pixmap(chain->conn,
chain->window,
chain->depth = bit_depth;
chain->extent = pCreateInfo->imageExtent;
chain->send_sbc = 0;
+ chain->sent_image_count = 0;
chain->last_present_msc = 0;
chain->has_acquire_queue = false;
chain->has_present_queue = false;