xserver/hw
Michel Dänzer 44527c2549 xwayland: Refactor xwl_window_swap_pixmap out of _buffers_get_pixmap
There will be another caller in a later commit.

v2:
* Bump xwl_window_buffer->refcnt in xwl_window_swap_pixmap, to prevent
  xwl_window_set_pixmap from disposing of it.
v3:
* Go back to bumping xwl_window_buffer->refcnt in
  xwl_window_buffers_get_pixmap. xwl_window_set_pixmap should no longer
  dispose of it now that xwl_glamor_gbm_create_pixmap_for_window is
  fixed, and xwl_window_swap_pixmap forgot to bump it if
  xwl_window_buffer_get_available returned NULL.
v4:
* Unlink xwl_window_buffer from xwl_window->window_buffers_available
  before calling xwl_window_set_pixmap in xwl_window_swap_pixmap, or
  that might dispose of it.
v5:
* xwl_window_swap_pixmap does everything xwl_window_buffer_get_available
  did before, except for just using the window pixmap if
  !xwl_glamor_needs_n_buffering.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1314>
2024-03-06 16:58:17 +01:00
..
kdrive dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
vfb dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
xfree86 dix: unexport AttachUnboundGPU() and DetachUnboundGPU() 2024-03-03 23:24:28 +00:00
xnest dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
xquartz os: consolidate busfault handling 2024-02-23 23:15:12 +00:00
xwayland xwayland: Refactor xwl_window_swap_pixmap out of _buffers_get_pixmap 2024-03-06 16:58:17 +01:00
xwin dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00