https://bugs.freedesktop.org/show_bug.cgi?id=60503
Priority: medium Bug ID: 60503 Assignee: dri-devel@lists.freedesktop.org Summary: [r300g] Unigine Heaven 3.0: all objects are black Severity: normal Classification: Unclassified OS: All Reporter: pavel.ondracka@email.cz URL: http://unigine.com/products/heaven/download/ Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/r300 Product: Mesa
All object in the 3.0 Heaven version are completely black... this seems to be the cause: r300 FP: Compiler Error: Rewrite of inst 4 failed Can't allocate source for Inst 36 src_type=1 new_index=1 new_mask=4 Using a dummy shader instead.
Full RADEON_DEBUG=fp log attached.
This may be a hardware limitation, however Heaven 2.1 version works fine, so maybe just a bug in the shader compiler.
GPU: RV530 Mesa: b681ed6ac970e061e9dbe7309bb69b3a947ae62d Kernel: 3.6.11-1.fc17.i686
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #1 from Pavel Ondračka pavel.ondracka@email.cz --- Created attachment 74476 --> https://bugs.freedesktop.org/attachment.cgi?id=74476&action=edit RADEON_DEBUG=fp log
I actually forgot to attach the log.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #2 from Tom Stellard tstellar@gmail.com --- Created attachment 74515 --> https://bugs.freedesktop.org/attachment.cgi?id=74515&action=edit Possible fix
Does this patch fix the issue?
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #3 from Pavel Ondračka pavel.ondracka@email.cz --- BTW this works fine with RADEON_DEBUG=noopt.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #4 from Pavel Ondračka pavel.ondracka@email.cz --- (In reply to comment #2)
Created attachment 74515 [details] [review] Possible fix
Does this patch fix the issue?
No it doesn't.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #5 from Tom Stellard tstellar@gmail.com --- (In reply to comment #4)
(In reply to comment #2)
Created attachment 74515 [details] [review] [review] Possible fix
Does this patch fix the issue?
No it doesn't.
Can you post the RADEON_DEBUG=fp dump with the patch applied?
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #6 from Pavel Ondračka pavel.ondracka@email.cz --- Created attachment 74516 --> https://bugs.freedesktop.org/attachment.cgi?id=74516&action=edit RADEON_DEBUG=fp log with patch applied
https://bugs.freedesktop.org/show_bug.cgi?id=60503
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74515|0 |1 is obsolete| |
--- Comment #7 from Tom Stellard tstellar@gmail.com --- Created attachment 74520 --> https://bugs.freedesktop.org/attachment.cgi?id=74520&action=edit Fix v2
This should fix the problem, can you verify?
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #8 from Pavel Ondračka pavel.ondracka@email.cz --- Created attachment 74525 --> https://bugs.freedesktop.org/attachment.cgi?id=74525&action=edit RADEON_DEBUG=fp log with patch v2 applied
(In reply to comment #7)
Created attachment 74520 [details] Fix v2
This should fix the problem, can you verify?
Sorry, it still isn't fixed. New log attached.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #9 from Tom Stellard tstellar@gmail.com --- (In reply to comment #8)
Created attachment 74525 [details] RADEON_DEBUG=fp log with patch v2 applied
(In reply to comment #7)
Created attachment 74520 [details] Fix v2
This should fix the problem, can you verify?
Sorry, it still isn't fixed. New log attached.
Ok, maybe I made a mistake posting the patch: Can you apply all six patches from:http://lists.freedesktop.org/archives/mesa-dev/2013-February/034357.html
After you apply the patches, run make check from src/gallium/drivers/r300 and make sure it passes and then re-test Heaven.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #10 from Pavel Ondračka pavel.ondracka@email.cz --- (In reply to comment #9)
(In reply to comment #8)
Created attachment 74525 [details] RADEON_DEBUG=fp log with patch v2 applied
(In reply to comment #7)
Created attachment 74520 [details] Fix v2
This should fix the problem, can you verify?
Sorry, it still isn't fixed. New log attached.
Ok, maybe I made a mistake posting the patch: Can you apply all six patches from:http://lists.freedesktop.org/archives/mesa-dev/2013-February/034357.html
After you apply the patches, run make check from src/gallium/drivers/r300 and make sure it passes and then re-test Heaven.
OK, with whole patch series applied the tests passes, however Heaven is still black.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #74520|0 |1 is obsolete| |
--- Comment #11 from Tom Stellard tstellar@gmail.com --- Created attachment 76797 --> https://bugs.freedesktop.org/attachment.cgi?id=76797&action=edit Possible fix v3
Does this patch help?
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #12 from Pavel Ondračka pavel.ondracka@email.cz --- (In reply to comment #11)
Created attachment 76797 [details] [review] Possible fix v3
Does this patch help?
Yes, this one fixes it.
https://bugs.freedesktop.org/show_bug.cgi?id=60503
--- Comment #13 from Pavel Ondračka pavel.ondracka@email.cz --- BTW i did a quick tests piglit run with your patch on my RV530 with no regressions (no fixes either except 2 tests in EXT_framebuffer_multisample group, however those seems to be fairly random... )
https://bugs.freedesktop.org/show_bug.cgi?id=60503
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #14 from Tom Stellard tstellar@gmail.com --- Fixed in commit c6a86fb5639977f37a1403012669cdee86bbd89f
Thanks for your help with testing!
dri-devel@lists.freedesktop.org