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> (cherry picked from commit 1e849b12f53350e9e5c4a4dab5b89559da4aa97d)
This commit is contained in:
parent
0de687d8f8
commit
6add041513
2 changed files with 3 additions and 3 deletions
|
|
@ -2354,7 +2354,7 @@
|
||||||
"description": "vk/wsi/x11/sw: use swapchain depth for putimage",
|
"description": "vk/wsi/x11/sw: use swapchain depth for putimage",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 0,
|
"nomination_type": 0,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null,
|
"because_sha": null,
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -1666,7 +1666,7 @@ x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index,
|
||||||
chain->gc,
|
chain->gc,
|
||||||
image->base.row_pitches[0] / 4,
|
image->base.row_pitches[0] / 4,
|
||||||
chain->extent.height,
|
chain->extent.height,
|
||||||
0,0,0,24,
|
0,0,0,chain->depth,
|
||||||
image->base.row_pitches[0] * chain->extent.height,
|
image->base.row_pitches[0] * chain->extent.height,
|
||||||
image->base.cpu_map);
|
image->base.cpu_map);
|
||||||
xcb_discard_reply(chain->conn, cookie.sequence);
|
xcb_discard_reply(chain->conn, cookie.sequence);
|
||||||
|
|
@ -1681,7 +1681,7 @@ x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index,
|
||||||
chain->gc,
|
chain->gc,
|
||||||
image->base.row_pitches[0] / 4,
|
image->base.row_pitches[0] / 4,
|
||||||
this_lines,
|
this_lines,
|
||||||
0,y_start,0,24,
|
0,y_start,0,chain->depth,
|
||||||
this_lines * stride_b,
|
this_lines * stride_b,
|
||||||
(const uint8_t *)myptr + (y_start * stride_b));
|
(const uint8_t *)myptr + (y_start * stride_b));
|
||||||
xcb_discard_reply(chain->conn, cookie.sequence);
|
xcb_discard_reply(chain->conn, cookie.sequence);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue