Summary: | Missing background graphics/texture in frogatto with R600 (RV670) | ||
---|---|---|---|
Product: | Mesa | Reporter: | Nils Kneuper <crazy-ivanovic> |
Component: | Drivers/DRI/R600 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
scene1, hardware accelerated, broken background
scene2, hardware accelerated, broken background scene1, software mode, expected result scene2, software mode, expected result Xorg.0.log xorg.conf dmesg Frogatto intro scene screenshot r1713 norm |
Description
Nils Kneuper
2010-02-08 08:11:28 UTC
Created attachment 33155 [details]
scene2, hardware accelerated, broken background
Created attachment 33156 [details]
scene1, software mode, expected result
Created attachment 33157 [details]
scene2, software mode, expected result
Created attachment 33158 [details]
Xorg.0.log
Created attachment 33159 [details]
xorg.conf
Created attachment 33160 [details]
dmesg
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). 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 I can confirm this on a Radeon 4550(RV710). 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. Created attachment 33197 [details] 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# (In reply to comment #10) > 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. 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 Created attachment 33209 [details] [review] norm patch to try (In reply to comment #14) > Created an attachment (id=33209) [details] > norm > > patch to try > Yes, this patch fixes the issues. Textures are not displayed correctly in forgatto. Thanks! I can also confirm, that this patch fixes the textures. (In reply to comment #14) > Created an attachment (id=33209) [details] > 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). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.