swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 342 forks source link

render/vulkan: experiment with compute shaders #3265

Open emersion opened 3 years ago

emersion commented 3 years ago

This is closer to bare metal so should be faster. On some GPUs (AMD) we could also use the compute queue and leave the graphics queue for 3D rendering (e.g. resource-intensive games).


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3265

alyssarosenzweig commented 3 years ago

This is closer to bare metal so should be faster

Depends a lot on the hardware and workload. On Mali, for example, imageStore in a CS can be slower than outputting a colour via a fragment shader, since the latter supports framebuffer compression but the former does not.

emersion commented 3 years ago

Yeah, @Joshua-Ashton said that we won't want to unconditionally use compute shaders, we'd only want to do so if the Vulkan driver can write to non-linear images from them.

misyltoad commented 3 years ago

And its actually a win compared to gfx. Thats why we should have both and pick appropriately.