Summary: | Amnesia shader compiler errors on RV350 | ||
---|---|---|---|
Product: | Mesa | Reporter: | Scott Moreau <oreaus> |
Component: | Drivers/Gallium/r300 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
side-by-side comparison
side-by-side comparison amnesia output with RADEON_DEBUG=fp Possible fix fishbowl screenshot before patch with-patch |
Created attachment 71006 [details]
side-by-side comparison
Correctly set type for image attachment.
If the game uses compressed textures, you may need to install libtxc_dxtn. Could you run the program with the environment variable RADEON_DEBUG=fp and then post the output. Created attachment 71007 [details] amnesia output with RADEON_DEBUG=fp (In reply to comment #3) > Could you run the program with the environment variable RADEON_DEBUG=fp and > then post the output. Yes, I have attached a file with the output. Thanks. Created attachment 71019 [details] [review] Possible fix Does this patch help? (In reply to comment #5) > Created attachment 71019 [details] [review] [review] > Possible fix > > Does this patch help? Yes this fixes the problem. The shaders work without error and the content is rendered which makes the game playable. Thanks for the quick help. I will leave this open until upstream gets the fix. I also waiting to merge this patch to master. :) (In reply to comment #6) > (In reply to comment #5) > > Created attachment 71019 [details] [review] [review] [review] > > Possible fix > > > > Does this patch help? > > Yes this fixes the problem. The shaders work without error and the content > is rendered which makes the game playable. Thanks for the quick help. I will > leave this open until upstream gets the fix. This bug report is actually two separate problems. The first problem 'Too many hardware temporaries used' is fixed with Tom's patch here. This was the main problem, since it rendered the game unplayable. The 'too many ALU instructions' message is output when Shadow Quality is set to 'High' in the game settings. Since this is a different issue, I have filed a separate bug report for it here https://bugs.freedesktop.org/show_bug.cgi?id=57918 I also noticed that there is some graphical problems...but game require Radeon X1000/GeForce 6, so rv350 is'nt supported... http://www.amnesiagame.com/#buy Created attachment 71054 [details]
fishbowl screenshot
(In reply to comment #5) > Created attachment 71019 [details] [review] [review] > Possible fix > > Does this patch help? The patch fixes compiler warning that there is too many ALU instructions and textures are visible. Unfortunatelly it corrupt lights in this game.Also similar corruption you can see on screenshot "fishblow" from webgl test http://ie.microsoft.com/testdrive/Performance/FishBowl/ And in supertuxkart shining parts of some vehicles have also similar corruption. Ok I have got better screenshots from "Amnesia". Mesa-git.png shows that there are textures missing but light is ok. with-patch.png shows textures but light is corrupted. Created attachment 71059 [details]
before patch
Created attachment 71060 [details]
with-patch
-- 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/345. |
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.
Created attachment 71005 [details] side-by-side comparison Running the game Amnesia with minimal graphics settings and resolution causes the following error: r300 FP: Compiler Error: Too many hardware temporaries used. Using a dummy shader instead. With all graphics settings highest, this message is output additionally: r300 FP: Compiler Error: compiler/r300_fragprog_emit.c::emit_alu(): Too many ALU instructions Here is some additional information: Distro: Xubuntu 12.04 32bit Kernel: 3.5.0-18-generic Mesa: ec83535c83c748b067ecf4548e5396fef8719725 libtxc_dxtn.so installed The game runs but most of the textures are black, except light sources such as the torches and windows. On Intel Sandybridge, the textures render correctly. I've attached an image to demonstrate the difference. The left is i965, the right is r300g. On intel, there are no errors output.