Summary: | [GLSL] allowing initializing a shared global to different values | ||
---|---|---|---|
Product: | Mesa | Reporter: | Gordon Jin <gordon.jin> |
Component: | glsl-compiler | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | christophe.prigent, idr, jian.j.zhao |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | add new piglit test case |
Description
Gordon Jin
2011-02-24 18:54:23 UTC
This test is almost identical to glsl-link-initializer-02. The only difference is that the existing test uses a const and the new test does not. The specific rules about global initializers are changing in GLSL, so we should update our compiler and the tests to match the new behavior. Basically, we want to do what Nvidia does. I'll talk this over with Chad and have him port the tests to his new linker test framework, then fix them. (In reply to comment #1) > This test is almost identical to glsl-link-initializer-02. The only difference > is that the existing test uses a const and the new test does not. Right. Using "const" in both shaders make it pass. Ian, would you commit my piglit test? I've posted a modified version of this test to the piglit mailing list for review. It should get pushed early next week. http://lists.freedesktop.org/archives/piglit/2011-October/001140.html I've just posted some patches to the mesa-dev mailing list to fix this issue. The first patch in the series is: http://lists.freedesktop.org/archives/mesa-dev/2011-October/013961.html (In reply to comment #4) > I've posted a modified version of this test to the piglit mailing list for > review. It should get pushed early next week. > http://lists.freedesktop.org/archives/piglit/2011-October/001140.html Ian, did you push? If so, what's the piglit case name? This should have been fixed by: commit f37b1ad937dd2c420f4c9fd9aa5887942bd31f3f linker: Check that initializers for global variables match The piglit test is: tests/shaders/glsl-link-initializer-01d.vert |
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.