[Bug 110472] Graphical Fault (Desktop Freeze) on Specific OpenGL Application

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 27 02:49:47 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=110472

--- Comment #5 from Timothy Arceri <t_arceri at yahoo.com.au> ---
There is a bug in one of their generated shaders.

 error: #extension directive is not allowed in the middle of a shader

Some other drivers allow extension to be defined mid shader but this is invalid
according to the OpenGL spec. You can see the problemn shader below:

#define EMULATION_UBO_BINDING 4
#define CBUF_BINDING_1 5
#define CBUF_BINDING_4 6
#define CBUF_BINDING_12 7
layout (lines) in;           <--- This needs to be after #extension
#define MAX_VERTEX_INPUT 2
#extension GL_ARB_separate_shader_objects : enable


This should be reported to the yuzu devs. For now you can try work around it by
setting the below environment variable when running yuzu. Let me know if this
fixes the issue for you.

allow_glsl_extension_directive_midshader=true

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190527/2f7522f6/attachment.html>


More information about the dri-devel mailing list