Skip to contentSkip to conversation

New: r600c and r600g: wrong rendering for Savage2 game

Bug 31667 [email protected] 1 participant 27 messages Nov 16, 2010 – Apr 15, 2013

lore
Share & tools
lore
#0 lore raw

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

Summary: r600c and r600g: wrong rendering for Savage2 game
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=40311)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40311)
r600g_bad_transp_lines.jpg

Savage2 is a free to play (but not opensource) game with native Linux clients, it renders correctly with llvmpipe and fglrx.
It doesn't render correctly with r600c and r600g. Using latest git version (commit 063c6b8f74d114241f663ef8fd93732a0a07c10f).

llvmpipe that works (sort of, its very very slow):

$ LD_LIBRARY_PATH=$HOME/mesa/lib/gallium glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe
OpenGL version string: 2.1 Mesa 7.10-devel
OpenGL shading language version string: 1.20
OpenGL extensions:

r600c has part of the screen black (see attached screenshot r600c_bad_partblack.jpg), but the menu is good (r600c_menu_good.jpg):

$ glxinfo|grep OpenGL
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV730 9498) 20090101  TCL DRI2
OpenGL version string: 2.1 Mesa 7.10-devel
OpenGL shading language version string: 1.20
OpenGL extensions:

r600g doesn't have the blackness bug, but the main character is missing/totally transparent you just see some swords running around (r600g_bad_transp_lines.jpg),
and it has some thin black horizontal lines all over the screen. The menu also has the thin black horizontal lines (r600g_bad_menu_lines.jpg). LIBGL_DRIVERS_PATH=$HOME/mesa/lib/gallium glxinfo|grep OpenGL OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV730
OpenGL version string: 2.1 Mesa 7.10-devel
OpenGL shading language version string: 1.20
OpenGL extensions:

The video card is:
01:00.0 VGA compatible controller: ATI Technologies Inc RV730 PRO [Radeon HD 4650]

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 31667] r600c and r600g: wrong rendering for Savage2 game

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

--- Comment #1 from Török Edwin <[email protected]> 2010-11-16 09:19:58 PST --- Created an attachment (id=40312)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40312)
r600g_bad_menu_lines.jpg

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #2 from Török Edwin <[email protected]> 2010-11-16 09:20:16 PST --- Created an attachment (id=40313)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40313)
r600c_bad_partblack.jpg

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #3 from Török Edwin <[email protected]> 2010-11-16 09:20:32 PST --- Created an attachment (id=40314)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40314)
r600c_menu_good.jpg

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #4 from Török Edwin <[email protected]> 2010-11-16 09:20:46 PST --- Created an attachment (id=40315)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40315)
llvmpipe_ok.jpg

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #5 from Török Edwin <[email protected]> 2010-11-16 09:22:37 PST --- To reproduce bug:
1. Install Savage2
2. LIBGL_DRIVERS_PATH=$HOME/mesa/lib/gallium ./savage2.bin
3. Press "Practice" (that way you can play locally, and don't have to join multiplayer server etc.)
4. Wait till it loads, can take quite a while
5. When in the game you can take screenshot with F5 (they are saved in ~/.savage2/game/screenshots), as soon as you enter the game you can see the rendering errors.

If you need any more info please ask.

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #6 from Török Edwin <[email protected]> 2010-11-18 03:04:04 PST --- On mesa commit 185d862cd8cd0a56dd86daa01d9c692ff4abfb54 right now, and the horizontal black lines problem is fixed on r600g, the transparent character problem stays though.

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #7 from Török Edwin <[email protected]> 2010-11-18 10:28:10 PST --- The missing character is a similar symptom to that of this bug for r300g which got fixed:
http://bugs.freedesktop.org/show_bug.cgi?id=28517

Do you need the RADEON_DEBUG=vp logs (or something else)?

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #8 from Alex Deucher <[email protected]> 2010-11-19 12:09:21 PST --- this is probably a dupe of bug 31613.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #9 from Kevin DeKorte <[email protected]> 2010-12-06 07:55:16 PST --- Testing r600g from mesa git as of Dec 5, 2010 the menus look good, but the characters are still invisible on the main game screen and in the tutorial.

I'm using kernel 2.6.36.1 and libdrm 2.4.23

I tested secondlife and it works really good with this build. Sometimes frame rates over 50 on an 3650 card.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #10 from Török Edwin <[email protected]> 2010-12-07 03:34:49 PST --- Also as soon as you start the game, the character on the menu screen is missing too with r600g (softpipe and llvmpipe is fine).
Attached is the FRAG and VERT dumps (I uncommented the tgsi_dump in r600g).

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #11 from Török Edwin <[email protected]> 2010-12-07 03:35:08 PST --- Created an attachment (id=40867)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40867)
vert_frag.log

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #12 from Tilman Sauerbeck <[email protected]> 2010-12-08 13:26:03 PST --- I wonder if bug 31771 might be the same problem as this one (on r600g at least).
Maybe comparing shader dumps for sauerbraten to these ones might give a clue...?

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #13 from Kevin DeKorte <[email protected]> 2010-12-08 13:43:23 PST --- When I put Savage2 in the Low resolution mode, I get a lot of funky red triangles on the main screen (where the big red demon should be). Made me wonder if the coordinates or normals were being interpreted incorrectly for the demon model. Everything else on the screen looks right however.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #14 from Kevin DeKorte <[email protected]> 2011-01-04 14:53:14 PST ---
http://paste.pocoo.org/raw/314893/ seems to help, makes more of the character visible, but head of character is still missing...

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #15 from Kevin DeKorte <[email protected]> 2011-01-04 14:53:58 PST --- Created an attachment (id=41652)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41652)
Savage2 with that patch at http://paste.pocoo.org/raw/314893/ applied

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #16 from Kevin DeKorte <[email protected]> 2011-01-04 15:42:34 PST --- I'm going to attach the patch here, just so it doesn't get lost.

It also appears as if the suit of armor is rotated clockwise on the Z? axis 90 degrees. I believe you should almost always see the back of the armor.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #17 from Kevin DeKorte <[email protected]> 2011-01-04 15:43:13 PST --- Created an attachment (id=41655)
View: https://bugs.freedesktop.org/attachment.cgi?id=41655
Review: https://bugs.freedesktop.org/review?bug=31667&attachment=41655

Patch that improves Savage2, but doesn't quite fix it.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #18 from Henri Verbeet <[email protected]> 2011-01-05 00:46:19 PST --- Well, there are at least two things that are broken in current r600g. The first one is using constant buffer indices > 63, and the patch you tried should help there. The other thing that's broken is relative addressing of constant buffers. It happens to somewhat work as long as the resulting constant index falls within the kcache window, but in general it just doesn't work at all. All the "CONST[ADDR[0].x]" arguments in vert_frag.log are using relative addressing.

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #19 from Kevin DeKorte <[email protected]> 2011-01-07 06:33:12 PST --- with mesa git db61b9ce39bccc43140357652ceb78baaf2aea44 Savage2 now crashes immediately. Believe it did not crash with e31defc825ee94f1d1092e277954abad7097c552

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #20 from Kevin DeKorte <[email protected]> 2011-01-16 13:53:41 PST --- The crashing problems seem to be solved and I talked to Christian about this. It appears that relative shader addressing of constants still need to be fixed. Anyway, git of r600g is looking better. The menu in Savage nearly looks correct now.

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 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #21 from Henri Verbeet <[email protected]> 2011-02-06 07:26:27 PST --- Created an attachment (id=42992)
View: https://bugs.freedesktop.org/attachment.cgi?id=42992
Review: https://bugs.freedesktop.org/review?bug=31667&attachment=42992

r600g_relative_addressing

Does this patch make it any better? It's still incomplete (most obviously it doesn't handle relative addressing for all instructions), but should already work for the common cases.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #22 from Kevin DeKorte <[email protected]> 2011-02-06 12:59:02 PST --- Henri,

Yes that patch does seem to help alot...

After that patch the only thing broken is shadows.

Please apply the relative_addressing or similar patch.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #23 from Kevin DeKorte <[email protected]> 2011-02-07 08:48:40 PST --- Appears the patch is merged in... I can disable shadows in the game and it looks really great... should I open a new bug on the shadows, or should we continue the issue 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.
#24 lore raw

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

--- Comment #24 from Török Edwin <[email protected]> 2011-02-07 09:13:24 PST --- (In reply to comment #23)

Quoted 2 lines

Appears the patch is merged in... I can disable shadows in the game and it looks really great...

Confirmed, latest Mesa from git works just fine.
Many thanks for fixing this.

Quoted 2 lines

should I open a new bug on the shadows, or should we continue the issue here?

I don't know, only thing I notice wrong with shadows is that they are very very slow.

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #25 from Jerome Glisse <[email protected]> 2012-02-22 10:04:33 PST --- Closing

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

[Bug 31667] r600c and r600g: wrong rendering for Savage2 game

In reply to [email protected]

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

[email protected] changed:

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

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
           Assignee|[email protected] |[email protected]
                   |.org                        |

--- Comment #26 from [email protected] ---
Created attachment 77965
--> https://bugs.freedesktop.org/attachment.cgi?id=77965&action=edit
Top of screen *sky* renders white

Reopening due to rendering bug found with top of screen area. Please see 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