[Bug 93437] [IVB] GLSL compiler doesn't recognize uniform layout format

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 18 05:26:49 PST 2015


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

            Bug ID: 93437
           Summary: [IVB] GLSL compiler doesn't recognize uniform layout
                    format
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: idr at freedesktop.org
          Reporter: deveee at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

The ARB_compute_shader extension has been added recently for ivybridge and
newer graphics cards (commit d04612b60d98ff785646affaffc3d7243deecb74).

But during compilation a shader, it fails on this line:

uniform layout(r16f) volatile restrict writeonly image2D dest;

The format r16f (and also other formats) are not recognized. 

The log from console:

[info   ] shader: Compiling shader : bilateralH.comp
[error  ] GLWrap: Error in shader bilateralH.comp
[error  ] GLWrap: 0:78(16): error: unrecognized layout identifier `r16f'

[error  ] GLWrapp: Error when linking these shaders :
[error  ] shader: bilateralH.comp
[error  ] GLWrapp: error: linking with uncompiled shader

These formats are handled in glsl_parser.cpp:

      if (state->ARB_shader_image_load_store_enable ||
          state->is_version(420, 310)) {

(...)
            } map[] = {
               { "rgba32f", GL_RGBA32F, GLSL_TYPE_FLOAT, 130, 310 },
               { "rgba16f", GL_RGBA16F, GLSL_TYPE_FLOAT, 130, 310 },
               { "rg32f", GL_RG32F, GLSL_TYPE_FLOAT, 130, 0 },
               { "rg16f", GL_RG16F, GLSL_TYPE_FLOAT, 130, 0 },
               { "r11f_g11f_b10f", GL_R11F_G11F_B10F, GLSL_TYPE_FLOAT, 130, 0
},

But it looks like state->ARB_shader_image_load_store_enable is never true.

Based on GL3.txt document, the ARB_shader_image_load_store extension is done
for intel graphics cards. Also glew library reports us that this extension is
available, so it looks that it should work.

It can be reproduced with Supertuxkart 0.9.1 or current git with enabled
ambient occlusion in options.

-- 
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/20151218/33d3dc41/attachment-0001.html>


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