Summary: | [glsl] wine shaders break with mesa GLSL | ||
---|---|---|---|
Product: | Mesa | Reporter: | Rubén Fernández <rubenf3000> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | marvin24, pavel.ondracka, sa |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Log for the game "The Abbey" using MESA_GLSL=dump
Log for the game "Dark Corners of the Earth" using MESA_GLSL=dump Log for the game "Doctor Who: the Adventure Games" using MESA_GLSL=dump Log for the game "Portal" using MESA_GLSL=dump output with MESA_GLSL=dump |
Description
Rubén Fernández
2010-08-19 22:55:36 UTC
Created attachment 38001 [details]
Log for the game "The Abbey" using MESA_GLSL=dump
Created attachment 38002 [details]
Log for the game "Dark Corners of the Earth" using MESA_GLSL=dump
Created attachment 38003 [details]
Log for the game "Doctor Who: the Adventure Games" using MESA_GLSL=dump
Created attachment 38004 [details]
Log for the game "Portal" using MESA_GLSL=dump
Wine d3d9 tests are another way to reproduce this. For what it's worth, this happens because of the array parameter in the function declaration "void order_ps_input(in vec4 OUT[12])" being mishandled by the GLSL compiler, as mentioned earlier on IRC to Eric and Ian. "void order_ps_input(in vec4[12] OUT)" does work as expected. That's also an easy workaround if you don't mind patching Wine source. Another test case is rthdribl, which worked before the glsl2 merge, but now segfaults. I'm not really sure how to get a proper backtrace from Wine though. http://www.daionet.gr.jp/~masa/rthdribl/ (In reply to comment #6) > For what it's worth, this happens because of the array parameter in the > function declaration "void order_ps_input(in vec4 OUT[12])" being mishandled by > the GLSL compiler, as mentioned earlier on IRC to Eric and Ian. "void > order_ps_input(in vec4[12] OUT)" does work as expected. That's also an easy > workaround if you don't mind patching Wine source. Thanks, Henri - good catch! I've added piglit tests array-19.vert, array-20.vert, and array-21.vert to test this, and fixed them in: commit e511a35fc53fb75a2401d8a94c0c35634175c575 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Sat Aug 21 15:30:34 2010 -0700 glsl: Handle array declarations in function parameters. The 'vec4[12] foo' style already worked, but the 'vec4 foo[12]' style did not. Also, 'vec4[] foo' was wrongly accepted. Fixes piglit test cases array-19.vert and array-21.vert. May fix fd.o bug #29684 (or at least part of it). I haven't tested with wine, though. (In reply to comment #8) > I haven't tested with wine, though. I did, and it works now. As far as I see, wine+glsl now works with the new GLSL compiler just as it did with the old one; can't find any compilation errors or regressions. That doesn't mean it's bug free, though; but the bugs I found also happened with the old compiler (which suggests that they are bugs in the radeon driver, rather than the compiler); but I shall report them as new bugs. mmh - still broken here, but works when "UseGLSL = disabled" in wine. Created attachment 38060 [details]
output with MESA_GLSL=dump
(In reply to comment #10) > mmh - still broken here, but works when "UseGLSL = disabled" in wine. Your output log indicates no compilation errors - which means that this particular bug is fixed. I know there are still GLSL bugs in wine, but I think they should be reported as separate bugs, as I'll do soon. ok - I didn't read the whole bug report (just the symptoms). sorry, closing again. (In reply to comment #13) > ok - I didn't read the whole bug report (just the symptoms). sorry, closing > again. You can now follow / contribute to improving GLSL with this new bug report: https://bugs.freedesktop.org/show_bug.cgi?id=29741 |
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.