Patryk27 / strolle

Experimental real-time renderer with support for dynamic global illumination
MIT License
403 stars 16 forks source link

Asahi Linux compatibility (Linux on Apple M1) #9

Open tombh opened 12 months ago

tombh commented 12 months ago

I'm already certain this issue is because of the current state of the Asahi graphics driver, so I don't expect anything to be fixed by you. I'm just mentioning it in case anybody else is trying this and if maybe there's an easy workaround.

The main error is: Features(TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | VERTEX_WRITABLE_STORAGE) are required but not enabled on the device.

The current driver has full support for OpenGL 3.3, but also has support for a lot of features in higher versions. See the "Drivers Details" section in https://mesamatrix.net. But even overriding the MESA_* versions produces the same error: MESA_GL_VERSION_OVERRIDE=4.6 MESA_GLSL_VERSION_OVERRIDE=460 MESA_GLES_VERSION_OVERRIDE=3.2 cargo run --release --example demo

New features are being added on a regular basis and even Vulkan support is being worked on. So I'm sure this'll just get fixed on its own soon anyway.

Patryk27 commented 12 months ago

Yes, I'm pretty sure it's missing support in their driver (understandably so, it's a complex topic).

It would be amazing to get better GPU support on Asahi - it's the last thing holding me back from jumping the ship 😄