Skip to contentSkip to conversation

New: Glyphy bad render on r600g (software render is fine)

Bug 50325 [email protected] 1 participant 11 messages May 24, 2012 – Mar 6, 2018

lore
Share & tools
lore
#0 lore raw

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

             Bug #: 50325
           Summary: Glyphy bad render on r600g (software render is fine)
    Classification: Unclassified
           Product: Mesa
           Version: 8.0
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Created attachment 62078
--> https://bugs.freedesktop.org/attachment.cgi?id=62078
apitrace (cf. https://github.com/apitrace/apitrace/tree/1.0)

I just tried Glyphy on r600g and the output is very bad.
Don't know if its Glyphy bug or Mesa bug, but if I force software rendering in Mesa then I do see the output.

Attached screenshots of bad (r600g) and good (software render).

The bad render was obtained by:
demo/glyphy-demo

The good one:
LIBGL_ALWAYS_SOFTWARE=1 demo/glyphy-demo

I tested on:
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV730
OpenGL version string: 2.1 Mesa 8.0.2
OpenGL shading language version string: 1.20

I'll try to test on mesa git later to see if its still an issue there.

Also attached is a an apitrace, and the bad render can be reproduced with:
build/glretrace lt-glyphy-demo.trace

The good render (initialization a bit slow, but works):
LIBGL_ALWAYS_SOFTWARE=1 build/glretrace lt-glyphy-demo.trace

The source code for Glyphy can be found here:
https://code.google.com/p/glyphy/source/checkout

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.
#1 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine)

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

--- Comment #1 from Török Edwin <[email protected]> 2012-05-24 14:57:08 PDT --- Created attachment 62079
--> https://bugs.freedesktop.org/attachment.cgi?id=62079
r600g-bad.png

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
#2 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine)

In reply to [email protected]

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

--- Comment #2 from Török Edwin <[email protected]> 2012-05-24 14:57:24 PDT --- Created attachment 62080
--> https://bugs.freedesktop.org/attachment.cgi?id=62080
sw-good.png

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 50325] Glyphy bad render on r600g (software render is fine)

In reply to [email protected]

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

--- Comment #3 from Török Edwin <[email protected]> 2012-05-25 00:22:27 PDT --- With the git version of Mesa I get an error, opened new bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=50338
EE r600_shader.c:140 r600_pipe_shader_create - translation from TGSI failed !

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 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

Török Edwin <[email protected]> changed:

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

            Summary|Glyphy bad render on r600g  |Glyphy bad render on r600g
                   |(software render is fine)   |(software render is fine) -
                   |                            |too many registers?

--- Comment #4 from Török Edwin <[email protected]> 2012-05-26 01:52:53 PDT --- (In reply to comment #3)

Quoted 3 lines

With the git version of Mesa I get an error, opened new bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=50338
EE r600_shader.c:140 r600_pipe_shader_create - translation from TGSI failed !

The bad render might be because the shader tries to use too many registers, some earlier version of Mesa git printed some errors about GPR count limit being exceeded.

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 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

--- Comment #5 from [email protected] ---
Bump

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

#6 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

--- Comment #6 from Vedran Miletić <[email protected]> --- (In reply to cyberkm from comment #5)

Quoted 1 line

Bump

Have you confirmed it happens with latest Mesa git? What hardware did you try it on?

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

#7 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

--- Comment #7 from [email protected] ---
Yep, latest mesa git.

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Antilles [Radeon HD 6990]

mesa r600 gallium.

The app works fine if i switch to software renderer.

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

#8 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

--- Comment #8 from Gert Wollny <[email protected]> ---
Could you re-test with the latest mesa-git? As of mid September some patches landed that improved the register use.

I myself tried it on an AMD 6850 HD and the trace works fine now.

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

#9 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

Gert Wollny <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Gert Wollny <[email protected]> --- This should be fixed since version 17.2.

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

#10 lore raw

[Bug 50325] Glyphy bad render on r600g (software render is fine) - too many registers?

In reply to [email protected]

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

--- Comment #10 from Gert Wollny <[email protected]> --- Actually, that should be v17.3.

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