https://bugs.freedesktop.org/show_bug.cgi?id=88717
Bug ID: 88717 Summary: [r300g] r300compiler error: Failed to translate rgb instruction - while running a game with gallium-nine Product: Mesa Version: git Hardware: x86 (IA32) URL: https://github.com/iXit/Mesa-3D/issues/64 OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r300 Assignee: dri-devel@lists.freedesktop.org Reporter: fabio.ped@libero.it QA Contact: dri-devel@lists.freedesktop.org
When running Tales of Monkey Island game with quality >= 7/9 using iXit mesa master branch I get the following error:
r300compiler error: Failed to translate rgb instruction. r300 FP: Compiler Error: Failed to translate rgb instruction. Using a dummy shader instead. r300: Initial fragment program
If useful I attached the output when running with "RADEON_DEBUG=fp wine MonkeyIsland101.exe > ~/nine-tales-monkey-island.txt 2>&1".
According to axeldavy on the gallium-nine github issue tracker ( https://github.com/iXit/Mesa-3D/issues/64 ) the shader seems fine, it is likely a r300 compiler error.
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #1 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112679 --> https://bugs.freedesktop.org/attachment.cgi?id=112679&action=edit console output running with RADEON_DEBUG=fp
I have a Radeon RV530.
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #2 from Tom Stellard tstellar@gmail.com --- Created attachment 112689 --> https://bugs.freedesktop.org/attachment.cgi?id=112689&action=edit Possible fix
Can you try this patch?
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #3 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112717 --> https://bugs.freedesktop.org/attachment.cgi?id=112717&action=edit screenshot with patch
The patch fixes the error, thanks.
The rendering is also improved but not correct however, while before the patch I got a black screen now I get the attached blurred image.
Running nine with D3D_ALWAYS_SOFTWARE=1 shows a proper render.
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #4 from Fabio Pedretti fabio.ped@libero.it --- The patch also regresses other games with different corruption types (e.g. sauerbraten becomes in black/white, 0ad has flickering textures).
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #5 from Tom Stellard tstellar@gmail.com --- Can you send me before/after dumps of RADEON_DEBUG=fs,vs,ps from one of the regressed games?
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #6 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112936 --> https://bugs.freedesktop.org/attachment.cgi?id=112936&action=edit "RADEON_DEBUG=fp,vp,pstat sauerbraten -lforce" output
(In reply to Tom Stellard from comment #5)
Can you send me before/after dumps of RADEON_DEBUG=fs,vs,ps from one of the regressed games?
I tried it with "RADEON_DEBUG=fp,vp,pstat" since "fs,vs,ps" apparently are not available. I tried running "sauerbraten -lforce" which shows black/white textures.
Note: it looks the output changes between consecutive runs, although there are not many possibilities (an output repeat after some runs). I attach the outputs before and after the patch that should hopefully match to the same game combination.
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #7 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112937 --> https://bugs.freedesktop.org/attachment.cgi?id=112937&action=edit "RADEON_DEBUG=fp,vp,pstat sauerbraten -lforce" output WITH patch -> b/n textures
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #8 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112981 --> https://bugs.freedesktop.org/attachment.cgi?id=112981&action=edit 0ad main menu console output
Here is another simple testcase, this is just the 0ad main menu, with the patch I can see a corrupted menu (a menu texture is grey).
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #9 from Fabio Pedretti fabio.ped@libero.it --- Created attachment 112982 --> https://bugs.freedesktop.org/attachment.cgi?id=112982&action=edit 0ad main menu console output + PATCH -> grey menu texture corruption
https://bugs.freedesktop.org/show_bug.cgi?id=88717
--- Comment #10 from Fabio Pedretti fabio.ped@libero.it --- Tom, any news on this? Thanks!
https://bugs.freedesktop.org/show_bug.cgi?id=88717
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #11 from GitLab Migration User gitlab-migration@fdo.invalid --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/366.
dri-devel@lists.freedesktop.org