Skip to contentSkip to conversation

New: Faulty shaders on RS600

Bug 50149 [email protected] 1 participant 28 messages May 20, 2012 – Sep 18, 2019

lore
Share & tools
lore
#0 lore raw

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

             Bug #: 50149
           Summary: Faulty shaders on RS600
    Classification: Unclassified
           Product: Mesa
           Version: 8.0
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Drivers/Gallium/r300
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Good day,
im owner of Dell Latitude XT laptop and have issues with any version of Mesa drivers. To specify problem correctly - i do have problems with shaders and textures on this laptop.
On Lightsmark i do have some artifacts on screen, no (or better to say) faulty reflection. With oibaf PPA repository (git-based repository) i do have pretty much all textures black. So no luck at all.
On Penumbra Black Plague GPU even causes laptop lockup - game will stop and after a moment the colors will disappear to strange white-ish recoloring and computer no longer works (hard reset required).
Im upgrading to PPA drivers ATM, so if i can submit some logs or try some variables, tell me and im up to try it.
Thank you for good job at the drivers.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #2 from Roman Šmakal <[email protected]> 2012-05-21 13:50:51 PDT --- Created attachment 61930
--> https://bugs.freedesktop.org/attachment.cgi?id=61930
dmesg logfile

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #3 from Roman Šmakal <[email protected]> 2012-05-21 13:51:09 UTC --- Created attachment 61931
--> https://bugs.freedesktop.org/attachment.cgi?id=61931
glxinfo logfile

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #4 from Roman Šmakal <[email protected]> 2012-05-21 13:51:29 PDT --- Created attachment 61932
--> https://bugs.freedesktop.org/attachment.cgi?id=61932
xorg logfile

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

Michel Dänzer <[email protected]> changed:

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

  Attachment #61932|application/octet-stream    |text/plain
          mime type|                            |
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

Roman Šmakal <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|8.0 |git

--- Comment #5 from Roman Šmakal <[email protected]> 2012-05-26 04:13:01 PDT --- compiler/r300_fragprog_emit.c::begin_tex(): Too many texture indirections Using a dummy shader instead.

This is an error reported by Lightsmark when using Mesa version git1205111237.c2f1fb. In LIBGL_ALWAYS_SOFTWARE textures are rendered correctly though. Tried the Lightsmark on other r300-series GPU and it worked perfectly (not sure which version of Mesa stack though, its my GFs PC).

Any more things i can debug to make a report more usefull?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #6 from Roman Šmakal <[email protected]> 2012-05-26 04:37:39 PDT --- Created attachment 62124
--> https://bugs.freedesktop.org/attachment.cgi?id=62124
Video of HoN bug

Heroes of Newerth flickering textures. Notice the flickering tree on the right. Sorry for poor quality, its taken with cell phone

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #7 from Roman Šmakal <[email protected]> 2012-05-26 04:39:25 PDT --- Created attachment 62125
--> https://bugs.freedesktop.org/attachment.cgi?id=62125
"Screen shot" of the HoN bug

Notice the lines on UI elements.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #8 from Roman Šmakal <[email protected]> 2012-05-26 04:47:02 UTC ---
http://s000.tinyupload.com/?file_id=42612426716764011418 < video of Penumra bug.
First character looks around then game freezes. I wait around minute for unfreezing, but its not gonna happen.
So i decide to try going to tty and back (Ctrl + Alt + F1 >> Alt + F7) and then hang happens.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #9 from Tom Stellard <[email protected]> 2012-05-28 17:14:51 PDT --- (In reply to comment #5)

Quoted 9 lines

compiler/r300_fragprog_emit.c::begin_tex(): Too many texture indirections Using a dummy shader instead.

This is an error reported by Lightsmark when using Mesa version git1205111237.c2f1fb. In LIBGL_ALWAYS_SOFTWARE textures are rendered correctly though. Tried the Lightsmark on other r300-series GPU and it worked perfectly (not sure which version of Mesa stack though, its my GFs PC).

Any more things i can debug to make a report more usefull?

Can you set the environment variable RADEON_DEBUG=fp and post the output from lightsmark?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #10 from Roman Šmakal <[email protected]> 2012-05-28 21:53:21 PDT --- Created attachment 62189
--> https://bugs.freedesktop.org/attachment.cgi?id=62189
Lightsmark rant with RADEON_DEBUG=fp

There we go. I hope it will be usefull

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #11 from Tom Stellard <[email protected]> 2012-05-29 16:39:47 PDT --- (In reply to comment #10)

Quoted 4 lines

Created attachment 62189 [details]
Lightsmark rant with RADEON_DEBUG=fp

There we go. I hope it will be usefull

I think I see the bug. Do you still get errors in Lightsmark if you set the env variable RADEON_TEX_GROUP=32

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #12 from Roman Šmakal <[email protected]> 2012-05-29 21:35:06 PDT --- With this settings textures are rendered, but they are red-shaded instead, so its not a fix for the issue

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #13 from Tom Stellard <[email protected]> 2012-06-25 19:10:56 PDT --- Created attachment 63471
--> https://bugs.freedesktop.org/attachment.cgi?id=63471
Possible fix patch 1

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #14 from Tom Stellard <[email protected]> 2012-06-25 19:13:09 PDT --- Created attachment 63472
--> https://bugs.freedesktop.org/attachment.cgi?id=63472
Possible fix patch 2

Can you apply these two patches and try again. Lightsmark looks a lot better to me with these patches. Do they help with any of your other games?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #15 from Roman Šmakal <[email protected]> 2012-06-25 19:30:13 PDT --- Actually i cant. My laptop cooling broken 2 weeks ago so i have to buy new fan for it. Will try these patches as soon as i fix it

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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
#17 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #16 from Roman Šmakal <[email protected]> 2012-06-28 11:47:19 PDT --- For me Lightsmark is slightly better in first scene, textures at least appears (but colors and shade are flickering) but its not really okayish. Reflections not working and so on. Anyway, maybe i just did bad job at compiling mesa stack, im not really good at patching&compiling things.
Heroes of Newerth UI is still looking same and i cant try Penumbra, because i would need to recompile mesa stack for 32bit.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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
#18 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #17 from Tom Stellard <[email protected]> 2012-08-27 01:15:34 UTC --- I've pushed the first patch, and you can get the same behavior as the second patch by setting RADEON_TEX_GROUP=128. There is still a bug somewhere, though, and if you play around with the RADEON_TEX_GROUP variable you'll notice there is a value that causes the rendering to look very different I think it's around
30. So less than that value will render one way and greater than that value will render another. I'm not sure what is happening here.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

  Attachment #63471|0                           |1
        is obsolete|                            |
  Attachment #63472|0                           |1
        is obsolete|                            |

--- Comment #18 from Tom Stellard <[email protected]> 2012-09-19 03:16:18 UTC --- Created attachment 67361
--> https://bugs.freedesktop.org/attachment.cgi?id=67361
Fix patch #1

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #19 from Tom Stellard <[email protected]> 2012-09-19 03:17:56 UTC --- Created attachment 67362
--> https://bugs.freedesktop.org/attachment.cgi?id=67362
Fix patch #2

If you apply these two patches and run Lightsmark with RADEON_TEX_GROUP=32, does it render correctly? How about with lower values of RADEON_TEX_GROUP, like 16 or 24?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #20 from Roman Šmakal <[email protected]> ---
I cant apply patch #2, 3 hunks rejected. Version of mesa i tried to patch was mesa_9.1~git20120929.9549e55f from xorg-edgers ppa. Im not really into programming and stuff and i dont like to apply it incorrect way, so any tips are welcome.

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

#22 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

Tom Stellard <[email protected]> changed:

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

  Attachment #67361|0                           |1
        is obsolete|                            |
  Attachment #67362|0                           |1
        is obsolete|                            |

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

Try this patch, it should apply correctly.

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

#23 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #22 from Roman Šmakal <[email protected]> --- Compiled it (hope that -glx and -dri packages are enough to install) and here are my impressions.
Lightsmark works 90% okay. Still there remains some minor issues with texturing (first scene - some texturing artifacts on the window). As a bonus - reflections now partially works too (not reflecting correctly though) so i guess we are on the right way to fix this issue. Im not at home right now so i cant test much more.

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

#24 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #23 from Roman Šmakal <[email protected]> --- Created attachment 67926
--> https://bugs.freedesktop.org/attachment.cgi?id=67926&action=edit
Frets on Fire font bug

Just noticed that frets on fire are bugged too. Not sure if its related to faulty shaders though.

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

#25 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #24 from Roman Šmakal <[email protected]> --- Torchlight seems to have same rendering issues as seen on HoN video. Time after time textures and models flickers. Playable though ..

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

#26 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

--- Comment #25 from Roman Šmakal <[email protected]> ---
I have tried Enemy Territory this week. Menu and stuff works well. When loading map, all textures on screen are just noise - nothing really looking like it should and game crashes at textures loading. Not sure if its related, but it may help solving this issue

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

#27 lore raw

[Bug 50149] Faulty shaders on RS600

In reply to [email protected]

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

GitLab Migration User <[email protected]> changed:

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

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

--- Comment #26 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/342.

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