[Mesa-dev] [Bug 106915] [GLSL] Unused arrays declared without a size should be handled like arrays of size 1.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 18 10:54:01 UTC 2018


Eleni Maria Stea <estea at igalia.com> changed:

           What    |Removed                     |Added
                 CC|                            |estea at igalia.com

--- Comment #8 from Eleni Maria Stea <estea at igalia.com> ---
(In reply to Ian Romanick from comment #2)

> Before we do that... does this work on other implementations?  I am very
> surprised that this is valid, as it does not match recollection of how we
> designed SSBOs.  I'll be a little surprised if this works on other drivers. 
> Let's collection some information about that, then decide how to proceed.

I ran the test on a proprietary ATI driver [1], here's the output:

$ bin/shader_runner
Failed to compile VS: Vertex shader failed to compile with the following
ERROR: 0:5: error(#413) Invalid implict array size is used on "uniform block
member", it only can be used on array's outer level
ERROR: 0:4: error(#415) only last member of shader storage buffer can be
unsized array
ERROR: 0:13: error(#143) Undeclared identifier: b
ERROR: 0:13: error(#216) Vector field selection out of range "a"
ERROR: 0:13: error(#145) Left of "[" is not of type array, matrix, or vector:
ERROR: 0:13: error(#160) Cannot convert from: "float" to: "default out highp
4-component vector of vec4"
ERROR: error(#273) 6 compilation errors.  No code generated

OpenGL renderer string: AMD Radeon HD 7400M Series
OpenGL version string: 4.4.13374 Compatibility Profile Context 13.35.1005
(installed fglrx version: 2:15.200-0ubuntu0.5)

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180618/6b1dc672/attachment.html>

More information about the mesa-dev mailing list