Skip to contentSkip to conversation

New: Missing background graphics/texture in frogatto with R600 (RV670)

Bug 26471 [email protected] 1 participant 19 messages Feb 8, 2010 – Feb 13, 2010

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=26471

Summary: Missing background graphics/texture in frogatto with
R600 (RV670)
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R600
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=33154)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33154)
scene1, hardware accelerated, broken background

I have a problem with the background texture as used in frogatto (a sidescrolling jump&run). The problem can be seen in the attached screenshots frogatto_texture-prob1.jpg and frogatto_texture-prob2.jpg. The expected result can be observed in frogatto_software-mode_scene1.jpg and frogatto_software-mode_scene2.jpg (created using the software renderer via LIBGL_ALWAYS_SOFTWARE=1). My graphics card is a generic HD3850 (RV670) with 512MB ram.

To reproduce this issues you will first have to get frogatto and build it yourself, to do so do the following steps:
0) get the build dependencies, I am not sure about those. From the flags used in the command I'd assume these:
- libsdl
- sdl-image
- sdl-ttf
- sdl-mixer (probably with vorbis support)
- boost-{regex, system, thread, iostreams}
- x11
- mesa (GL and GLU required)
- glew
1) get the svn checkout eg using "svn checkout
http://frogatto.googlecode.com/svn/trunk/ frogatto-read-only"
2) cd frogatto-read-only
3) edit "Makefile" and remove every occurence of "-lprofiler" (seems to break building due to whatever reason, not fixed yet for upstream, but this way it is possible to compile+run it)
4) compile using "make"
5) run the resulting binary by typing "./game" (controls are the arrow keys plus 'a' and 's', exit the game by pushing 'esc')

After step 5) you should see the missing background texture when using the git version of mesa (currently as of today 7.8-devel). There is no problem when using the software renderer and there is also no problem on a system with an Intel i945 based chip and mesa 7.7 or mesa 7.6. I don't know if it ever worked for r6xx hardware with mesa.
Someone yesterday mentioned in #radeon that s3tc is broken on r600. I don't know if s3tc is used, but I don't think so. Is there some easy way to check this in the sources?

Here is the software stack used:
Gentoo unstable (arch: amd64)
mesa, xf86-video-radeon and libdrm from git-master KMS active
kernel 2.6.33-rc7

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#1 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #1 from Nils Kneuper <[email protected]> 2010-02-08 08:12:09 PST --- Created an attachment (id=33155)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33155)
scene2, hardware accelerated, broken background

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#2 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #2 from Nils Kneuper <[email protected]> 2010-02-08 08:12:57 PST --- Created an attachment (id=33156)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33156)
scene1, software mode, expected result

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#3 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #3 from Nils Kneuper <[email protected]> 2010-02-08 08:13:20 PST --- Created an attachment (id=33157)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33157)
scene2, software mode, expected result

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#4 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #4 from Nils Kneuper <[email protected]> 2010-02-08 08:21:12 PST --- Created an attachment (id=33158)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33158)
Xorg.0.log

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#5 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #5 from Nils Kneuper <[email protected]> 2010-02-08 08:21:24 PST --- Created an attachment (id=33159)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33159)
xorg.conf

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#6 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #6 from Nils Kneuper <[email protected]> 2010-02-08 08:21:42 PST --- Created an attachment (id=33160)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33160)
dmesg

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#7 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #7 from Nils Kneuper <[email protected]> 2010-02-08 16:20:47 PST --- shadowmaster (another Wesnoth dev) just told me that he has the same problems with frogatto. Here some info about his system:
01:05.0 VGA compatible controller: ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics]
Linux 2.6.32.5 on Debian Squeeze
running Mesa 7.7 (release)
lastest-ish drm from the git repository
latest-ish ddx from the radeon repository
no KMS

So it looks like it does not depend on KMS and that the issue is no regression (since it does already exist in 7.7).

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#8 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #8 from Nils Kneuper <[email protected]> 2010-02-09 06:56:49 PST --- To make sure to get a version that does compile and link, please use this checkout link:
svn checkout -r 1712 http://frogatto.googlecode.com/svn/trunk/
frogatto-read-only

You still have to update the Makefile, this sed command does the job:
sed -i "s/ -lprofiler//g" Makefile

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#9 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #9 from Michael de Lang <[email protected]> 2010-02-09 08:52:36 PST --- I can confirm this on a Radeon 4550(RV710).

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
#10 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #10 from Andrius Štikonas <[email protected]> 2010-02-09 13:34:41 PST --- Frogatto started working after revision 1713

r1713: Integrated the rectangle rotation code into the blitting routines to actually be used when an object is to be rotated.

So this bug can be caused by broken blitting on r600.

Signature · 12 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#11 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #11 from Andrius Štikonas <[email protected]> 2010-02-09 13:39:21 PST --- Created an attachment (id=33197)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33197)
Frogatto intro scene screenshot r1713

The diff of the revision that broken Frogatto even worse.

http://code.google.com/p/frogatto/source/detail?r=1713#

Signature · 12 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#12 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #12 from Alex Deucher <[email protected]> 2010-02-09 13:45:38 PST --- (In reply to comment #10)

Quoted 7 lines

Frogatto started working after revision 1713

r1713: Integrated the rectangle rotation code into the blitting routines to actually be used when an object is to be rotated.

So this bug can be caused by broken blitting on r600.

Sounds like an app bug if it's fixed in a newer version of the app. The r600 driver in mesa 7.6 and 7.7 doesn't accelerate CopyTex(Sub)Image (which is what the 'blit' code in the r600 driver does), only mesa master does.

Signature · 9 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#13 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #13 from Nils Kneuper <[email protected]> 2010-02-09 14:16:24 PST --- Okay, some updates.
1) As testcase you can also use rev1715. In this one there is no change to the makefile required. If you got the libs, you should be able to compile things with a simple "make". Yes, in >=r1713 basically all textures "vanished".

2) In IRC, talking with agd5f and Jetrel (one of the people working on frogatto) we found the reason for those missing textures. Here is the respective part from the logs of #radeon:

[22:47:36] <agd5f> Ivanovic, stikonas: does it work any better/worse with mesa 7.7 branch?
[22:51:40] <Ivanovic> agd5f: no visible difference for me in frogatto r1712 [22:51:58] <Ivanovic> agd5f: that with both, git master and mesa 7.7 (release version) it looks identical
[22:52:08] <agd5f> Ivanovic: ok. so probably not the blit code [22:52:51] <agd5f> Ivanovic: if you use non-float values for vertex attributes that may be a problem
[23:09:07] <Ivanovic> agd5f: just talked to jetrel (he is online in irc, though he tends to not join too many chans...), he said that they intentionally use shorts for the vertex attributes since this is just the precision required [23:09:21] <Ivanovic> agd5f: this should explain the reason for the problems, right?
[23:09:54] <Ivanovic> the reason for this is the reduced memory bandwidth compared to using floats
[23:09:56] <agd5f> Ivanovic: yes. they are broken right now in git [23:10:48] <Ivanovic> okay
[23:11:15] <Ivanovic> agd5f: want me to add this as comment to the bugreport or will you take care of it? (that is: i would just paste this part of the changelog)
[23:12:19] <agd5f> Ivanovic: yes please

Signature · 9 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#14 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #14 from Andre Maasikas <[email protected]> 2010-02-10 03:25:32 PST --- Created an attachment (id=33209)
--> (http://bugs.freedesktop.org/attachment.cgi?id=33209)
norm

patch to try

Signature · 9 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#15 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #15 from Nils Kneuper <[email protected]> 2010-02-10 04:56:56 PST --- (In reply to comment #14)

Quoted 1 line

Created an attachment (id=33209)

--> (http://bugs.freedesktop.org/attachment.cgi?id=33209) [details]

Quoted 4 lines

norm

patch to try

Yes, this patch fixes the issues. Textures are not displayed correctly in forgatto. Thanks!

Signature · 9 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#16 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #16 from Andrius Štikonas <[email protected]> 2010-02-10 05:48:36 PST --- I can also confirm, that this patch fixes the textures.

Signature · 12 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#17 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

--- Comment #17 from Ignacio R. Morelle <[email protected]> 2010-02-10 18:17:27 PST --- (In reply to comment #14)

Quoted 1 line

Created an attachment (id=33209)

--> (http://bugs.freedesktop.org/attachment.cgi?id=33209) [details]

Quoted 4 lines

norm

patch to try

The patch solves the problem here with a Radeon HD 3200 (RS780M/RS780MN) controller on Debian Squeeze (amd64, custom Linux 2.6.32.5 build, no KMS, latest radeon ddx and libdrm from the git repos). All textures were previously missing with the same latest build of the application, using both Mesa 7.7 and later HEAD from the git master (before applying the patch, that is).

Signature · 9 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#18 lore raw

[Bug 26471] Missing background graphics/texture in frogatto with R600 (RV670)

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=26471

Andrius Štikonas <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
Signature · 12 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel