[Mesa-dev] [Bug 31985] New: [GLSL 1.20] initialized uniform array considered as "unsized"
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Nov 30 00:06:14 PST 2010
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 at lists.freedesktop.org
ReportedBy: gordon.jin at 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.
More information about the mesa-dev
mailing list