Skip to contentSkip to conversation

New: Amnesia shader compiler errors on RV350

Bug 57888 [email protected] 1 participant 17 messages Dec 4, 2012 – Sep 18, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=57888

Priority: medium
Bug ID: 57888
Assignee: [email protected]
Summary: Amnesia shader compiler errors on RV350
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86 (IA32)
Status: NEW
Version: git
Component: Drivers/Gallium/r300
Product: Mesa

Created attachment 71005
--> https://bugs.freedesktop.org/attachment.cgi?id=71005&action=edit
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

https://bugs.freedesktop.org/show_bug.cgi?id=57888

Scott Moreau <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #71005|0                           |1

is obsolete| |

--- Comment #1 from Scott Moreau <[email protected]> --- Created attachment 71006
--> https://bugs.freedesktop.org/attachment.cgi?id=71006&action=edit
side-by-side comparison

Correctly set type for image attachment.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #2 from Alex Deucher <[email protected]> ---
If the game uses compressed textures, you may need to install libtxc_dxtn.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #3 from Tom Stellard <[email protected]> ---
Could you run the program with the environment variable RADEON_DEBUG=fp and then post the output.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #4 from Scott Moreau <[email protected]> --- Created attachment 71007
--> https://bugs.freedesktop.org/attachment.cgi?id=71007&action=edit
amnesia output with RADEON_DEBUG=fp

(In reply to comment #3)

Quoted 2 lines

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

Andreas Boll <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #71005|text/plain                  |image/png
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #5 from Tom Stellard <[email protected]> --- Created attachment 71019
--> https://bugs.freedesktop.org/attachment.cgi?id=71019&action=edit
Possible fix

Does this patch help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #6 from Scott Moreau <[email protected]> --- (In reply to comment #5)

Quoted 4 lines

Created attachment 71019 [details] [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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #7 from Tomasz P. <[email protected]> --- I also waiting to merge this patch to master. :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #8 from Scott Moreau <[email protected]> --- (In reply to comment #6)

Quoted 9 lines

(In reply to comment #5)

Quoted 4 lines

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.

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #9 from Tomasz P. <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #10 from Tomasz P. <[email protected]> --- Created attachment 71054
--> https://bugs.freedesktop.org/attachment.cgi?id=71054&action=edit
fishbowl screenshot

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #11 from Tomasz P. <[email protected]> --- (In reply to comment #5)

Quoted 4 lines

Created attachment 71019 [details] [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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #12 from Tomasz P. <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #13 from Tomasz P. <[email protected]> --- Created attachment 71059
--> https://bugs.freedesktop.org/attachment.cgi?id=71059&action=edit
before patch

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

--- Comment #14 from Tomasz P. <[email protected]> --- Created attachment 71060
--> https://bugs.freedesktop.org/attachment.cgi?id=71060&action=edit
with-patch

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 57888] Amnesia shader compiler errors on RV350

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=57888

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #15 from GitLab Migration User <[email protected]> --- -- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel