Summary: | Unreal Engine 4 demos fail GLSL compiler assertion | ||
---|---|---|---|
Product: | Mesa | Reporter: | Michel Dänzer <michel> |
Component: | glsl-compiler | Assignee: | Tapani Pälli <lemody> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | mzdunek |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
TappyChicken output with MESA_GLSL=dump
patch to fix ir_loop generation |
Description
Michel Dänzer
2014-07-04 01:15:27 UTC
Pretty sure this is Matt's tree rebalancer not coping with vector * scalar stuff correctly, which is a recent regression. Two patches on the list [PATCH 1/2] glsl: Add callback_leave to ir_hierarchical_visitor. [PATCH 2/2] glsl: Update expression types after rebalancing the tree. Should be fixed by http://cgit.freedesktop.org/mesa/mesa/commit/?id=103716a8629858f6af32a3a6b195a4dc78c356d2 Let me know if there are still problems. I'm out of the office until Tuesday, July 22. For urgent issues pertaining to Open Source Graphics, please contact Alex Deucher. For urgent issues pertaining to Embedded Linux Graphics, please contact Samuel Li. For urgent issues pertaining to CMM/QS, please contact Serguei Sagalovitch. Created attachment 103582 [details]
TappyChicken output with MESA_GLSL=dump
I'm still hitting this after working around bug 81834. I attached the MESA_GLSL=dump output. This looks like a case where we would need implicit conversion between unsigned and signed types, adding implicit conversion where the expression gets generated should fix this but requires client to use GLSL 4.0. I will try to see if this helps. In case other people look at this bug, there is another backtrace where it runs into a failed assertion: https://bugs.freedesktop.org/show_bug.cgi?id=75276#c32 You are right, after reverting f4b0ab7afd83c811329211eae8167c9bf238870c this does not happen anymore. With the TappyChicken demo, I then get bug 80880 too. (In reply to comment #8) Sorry, posted in the wrong tab. Created attachment 103679 [details] [review] patch to fix ir_loop generation Here's a fix. Alternatively we could add a ir_unop_i2u cast for the iter. I'm not sure which solution is preferable. (In reply to comment #10) > Here's a fix. Works for me, thanks. fix pushed in |
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.