Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

render/vulkan: experiment with compute shaders #3265

Open
emersion opened this issue Oct 18, 2021 · 3 comments
Open

render/vulkan: experiment with compute shaders #3265

emersion opened this issue Oct 18, 2021 · 3 comments

Comments

@emersion
Copy link
Member

emersion commented Oct 18, 2021

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
Copy link

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
Copy link
Member Author

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.

@Joshua-Ashton
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants