https://bugs.freedesktop.org/show_bug.cgi?id=31985
Summary: [GLSL 1.20] initialized uniform array considered as "unsized" Product: Mesa Version: git Platform: All OS/Version: Linux (All) Status: NEW Severity: minor Priority: medium Component: Mesa core AssignedTo: mesa-dev@lists.freedesktop.org ReportedBy: gordon....@intel.com Created an attachment (id=40658) --> (https://bugs.freedesktop.org/attachment.cgi?id=40658) new test case for piglit shader_runner below array is declared with implicit size, but after initialization (so it should be explicitly sized) it's still (wrongly) considered as unsized. uniform float a[] = float[](0,1,2,3,4); The attached case fails with below error: Failed to compile FS: 0:5(15): error: length called on unsized array. PIGLIT: {'result': 'fail' } It will pass if the array is local variable instead of uniform variable. Tested on Piketon (i965) with mesa master. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev