[Bug 93266] gl_arb_shading_language_420pack does not allow binding of image variables

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 5 13:24:38 PST 2015


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

            Bug ID: 93266
           Summary: gl_arb_shading_language_420pack does not allow binding
                    of image variables
           Product: Mesa
           Version: git
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: idr at freedesktop.org
          Reporter: bugReporter92 at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

If I am creating a shader like so:

#version 330
#extension GL_ARB_shader_image_load_store : require
#extension GL_ARB_shading_language_420pack : require

layout(binding = 0, r16ui) uniform readonly uimage2D uZlutImage;
...

This currently gives the error:
"the "binding" qualifier only applies to uniform blocks, opaque variables, or
arrays thereof"
If I set the first line of the shader to "#version 420" it compiles and works
as expected (because both of those extensions are supported in Mesa, so
although I'm using 420 behaviour which isn't yet fully supported in Mesa it
should still be possible. I need to set the environment variable
MESA_GLSL_VERSION_OVERRIDE=420 of course)

In the extension specification for GL_ARB_shading_language_420pack
(https://www.opengl.org/registry/specs/ARB/shading_language_420pack.txt) it
reads
"Add layout qualifier identifier "binding" to bind units to sampler and image
variable declarations." I could be wrong, but I think I should be able to bind
image variables without using the environment variables.

I think the fix here could be as simple as forcing "#extension
GL_ARB_shading_language_420pack" to imply "#version 420". It might be more
complex than that though.

If I'm wrong here, and my interpretation of how to use this extension is false,
do you mind directing me in how to bind image variables using only extensions,
and if that's even possible?

Thank-you very much
Matt
i965 (Ivybridge I think)
Debian Sarge

-- 
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/20151205/08a4344d/attachment.html>


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