Summary: | [GLSL] implicit sized array with index 0 used gets assertion | ||
---|---|---|---|
Product: | Mesa | Reporter: | Gordon Jin <gordon.jin> |
Component: | glsl-compiler | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | high | Keywords: | regression |
Version: | 7.10 | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | new piglit test case |
Description
Gordon Jin
2011-02-11 19:00:16 UTC
Created attachment 43279 [details]
new piglit test case
This is introduced by: Commit: 5c2cec8337c5afc6941cd5c0bcedd27ff99b1bc7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c2cec8337c5afc6941cd5c0bcedd27ff99b1bc7 Author: Ian Romanick <ian.d.romanick@intel.com> Date: Tue Jan 25 11:50:04 2011 -0800 ir_to_mesa: Add several assertions about sizes of arrays Both of these assertions are triggered by the test case in bugzilla size of 0. This is fixed in master by the commit below. I'll close the bug once the fix is cherry-picked to 7.9 and 7.10. commit 25b36e8ff81a9c951085d6dd802a7534db476f5a Author: Ian Romanick <ian.d.romanick@intel.com> Date: Tue Feb 15 18:17:53 2011 -0800 linker: Fix off-by-one error implicit array sizing Arrays are zero based. If the highest element accessed is 6, the array needs to have 7 elements. Fixes piglit test glsl-fs-implicit-array-size-03 and bugzilla #34198. NOTE: This is a candidate for the 7.9 and 7.10 branches. verified it's fixed on master Fixed on 7.9 (7be5744b5b53f385c27ddbcec0b6bc6ecb394706) and 7.10 (52a274a4c04dba4354e2e84a4faceb994de646cf). verified on 7.10 branch |
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.