[Bug 75664] Unigine Valley & Heaven "error: syntax error, unexpected EXTENSION, expecting $end" IVB HD4000

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 8 14:18:21 PDT 2014


--- Comment #7 from Ian Romanick <idr at freedesktop.org> ---
(In reply to comment #6)
> Yes, Gallium drivers have quite different shader compiler code from classic
> Mesa side.

The front end of the compiler (the only part that sees the GLSL code from the
application) is the same for all Mesa drivers.  The difference is the Gallium
drivers that are not affected by this issue do not expose
GL_ARB_sample_shading... so the Unigine demos don't try to enable it in the
middle of the shader.

> Blend function issue will be fixed in next version of Valley, it's a bug in
> the demo.  If  you don't want to work around the demo bugs with environment
> variables, you have also an option to patch Mesa:
> http://cgit.freedesktop.org/~kwg/mesa/log/?h=unigine
> (There are also patches floating around for allowing extension declarations
> elsewhere in shader source, but they seem to get fairly quickly out of date,
> and AFAIK they won't get merged into Mesa until Khronos GL specs have been
> changed accordingly.  See e.g. patch mentioned in bug 71591.)

Allowing extensions in the middle of the shader will NOT be made the default in
Mesa.  Khronos decided (wisely, IMO) that the spec is correct as-is.  At least
one vendor vowed to fix his implementation.  I posted a bit more explanation in
another bug related to this issue... or perhaps it was on the mesa-dev mailing

Code has landed in Mesa to enable a driconf option for this, and Ken has a
patch on the mesa-dev list to enable this driconf option in the i965 driver:


This patch should land any time now.

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140808/f4d067d5/attachment.html>

More information about the intel-3d-bugs mailing list