dillongoostudios / goo-engine

Custom build of blender with some extra NPR features.
Other
982 stars 129 forks source link

Eevee crashes on Linux with AMD GPU #3

Closed justjulez420 closed 2 years ago

justjulez420 commented 2 years ago

As mentioned in #2 my build crashes when trying to enter any eevee-viewport. this is what my terminal shows me:

ERROR (gpu.shader): GPU_material_compile VertShader: 4473 ^ Error: #extension directive is not allowed in the middle of a shader ERROR (gpu.shader): GPU_material_compile FragShader:
4804
^
Error: #extension directive is not allowed in the middle of a shader
ERROR (gpu.shader): GPU_material_compile VertShader: 4483 ^ Error: #extension directive is not allowed in the middle of a shader ERROR (gpu.shader): GPU_material_compile FragShader:
4814
^
Error: #extension directive is not allowed in the middle of a shader

from what i found on google, this seems to been an issue related to mesa graphics drivers. cycles, workbench and malt work fine. at this point i doubt it's a problem with my build. i also tried building the stable branch, which gave me only half of the errors but still a crash. i'll keep poking around but i literally have no idea what i'm doing and not much confidence left did anyone else with an amd gpu managed to run this on linux yet? or has any idea on how to fix this?

justjulez420 commented 2 years ago

I found a workaround! running 'export allow_glsl_extension_directive_midshader=true' before running the executable prevents the crash. Probably not to most elegant solution but at least everything seems to work now. I'll leave this issue open tho, in case anyone wants to actually fix it.