mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
vk/wsi/x11/sw: use swapchain depth for putimage
this is otherwise broken for 32bit depth windows cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27605>
This commit is contained in:
parent
198719e80e
commit
1e849b12f5
1 changed files with 2 additions and 2 deletions
|
|
@ -1420,7 +1420,7 @@ x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index,
|
|||
chain->gc,
|
||||
image->base.row_pitches[0] / 4,
|
||||
chain->extent.height,
|
||||
0,0,0,24,
|
||||
0,0,0,chain->depth,
|
||||
image->base.row_pitches[0] * chain->extent.height,
|
||||
image->base.cpu_map);
|
||||
xcb_discard_reply(chain->conn, cookie.sequence);
|
||||
|
|
@ -1435,7 +1435,7 @@ x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index,
|
|||
chain->gc,
|
||||
image->base.row_pitches[0] / 4,
|
||||
this_lines,
|
||||
0,y_start,0,24,
|
||||
0,y_start,0,chain->depth,
|
||||
this_lines * stride_b,
|
||||
(const uint8_t *)myptr + (y_start * stride_b));
|
||||
xcb_discard_reply(chain->conn, cookie.sequence);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue