[Mesa-dev] Question in wsi_common_x11.c
vivek pandya
vivekvpandya at gmail.com
Sun Feb 21 12:06:20 UTC 2021
Hello,
In the following code why mage->base.row_pitches[0] is divided by 4 and
passed as width to xcb_put_function() ?
26 static VkResult
25 x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t
image_index,
...
15
14 cookie = xcb_put_image(chain->conn, XCB_IMAGE_FORMAT_Z_PIXMAP,
13 chain->window,
12 chain->gc,
11 image->base.row_pitches[0] / 4,
10 chain->extent.height,
9 0,0,0,24,
8 image->base.row_pitches[0] *
chain->extent.height,
7 myptr);
Thanks,
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20210221/b2760a02/attachment.htm>
More information about the mesa-dev
mailing list