Summary: | [GLSL] re-declaring an empty array fails to compile | ||
---|---|---|---|
Product: | Mesa | Reporter: | Gordon Jin <gordon.jin> |
Component: | Mesa core | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | Eric Anholt <eric> |
Severity: | normal | ||
Priority: | medium | CC: | brianp, idr |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | 25826 | ||
Bug Blocks: | 29044 |
Description
Gordon Jin
2009-12-16 00:12:15 UTC
I think the sequence is correct. These tests originally came from 3dlabs and the original authors of the GLSL specification. I'll talk to John K. to find the specific language in the GLSL spec. The test is correct. Section 4.2 "Scoping" of the GLSL 1.10 document says, "A variable declared as an empty array can be re-declared as an array of the same base type." This is fixed in glsl2. verified with mesa master d442a01ac14382d83cdaac87d2832315ceb3e963. CorrectFull.vert still fails, but that'll be another bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.