turnip: X11 support for freedreno kgsl?
Hi. I am researching possibility to make turnip work with X server without using MESA_VK_WSI_DEBUG=sw
since it copies frame contents to shared memory buffer.
It looks like with kgsl image buffer can be mmap
ed and accessed with CPU so it is possible to bind it to X server with simple xcb_shm_attach_fd
and create XCB pixmap with xcb_shm_create_pixmap
, and then present it with xcb_present_pixmap
. Also I've found that vulkan's X11 WSI does not do this, it uses xcb_put_image
so it does not wait for it's actual drawing (fence?) like in the case of dri3 pixmap.
That causes output like this:
Also there is a question: is there Xorg module for turnip? Or DDX server?
Thank you for your hard work.