Bug 30044 - [R600c] Corruption in Penumbra Overture demo when color tiling is enabled
Summary: [R600c] Corruption in Penumbra Overture demo when color tiling is enabled
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
: 30076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-06 06:21 UTC by darkbasic
Modified: 2011-02-20 15:40 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (49.93 KB, text/plain)
2010-09-07 05:02 UTC, darkbasic
no flags Details
Xorg.0.log (41.04 KB, text/plain)
2010-09-07 05:03 UTC, darkbasic
no flags Details

Description darkbasic 2010-09-06 06:21:00 UTC
The same kind of corruption I noticed in every game with R600g+color tiling.
I does work properly when color tiling is off.

mesa git, libdrm git, xf86-video-ati git, xorg-server-1.9, drm-radeon-testing

Darkbasic
Comment 1 Alex Deucher 2010-09-06 21:09:54 UTC
Please attach your xorg log and dmesg output after running the game with tiling enabled.
Comment 2 darkbasic 2010-09-07 05:02:42 UTC
Created attachment 38507 [details]
dmesg
Comment 3 darkbasic 2010-09-07 05:03:04 UTC
Created attachment 38508 [details]
Xorg.0.log
Comment 4 darkbasic 2010-09-07 05:03:18 UTC
Here it is.
Comment 5 Mathieu Belanger 2010-09-08 10:14:54 UTC
*** Bug 30076 has been marked as a duplicate of this bug. ***
Comment 6 Nils Kneuper 2010-10-07 07:11:03 UTC
Currently alink is working on porting wesnoth to opengl. The start was a crude hack somehow coding opengl equivalents of sdl commands. This branch does lead to screen corruptions as shown in the screenshot attached to Bug 30076 which is marked a duplicate of this one.

alink added some tests for commonly used functions in the wesnoth-gl port. It seems as if this (at least regarding the output of the function later on) does not work as expected:

20101007 15:55:17 error display: Can't read or write on back buffer.
20101007 15:55:17 error display: Can't read or write on front buffer.
20101007 15:55:17 error display: Can't copy from back buffer to front buffer.
20101007 15:55:17 error display: Can't copy from back buffer to back buffer.

Adding glFlush commands does lead the the same prob. Using r600c this does work over here, r600g does show the corruption when color tiling is active. Testbase:
rv670 512MB (HD3850), kernel 2.6.36-rc[6,7] (amd64), xorg-server-1.9.x, libdrm git master, xf86-video-ati git master, mesa git master

The function creating this output is "static bool test_buffers(bool flush)" and it is part of the following source file: http://svn.gna.org/viewcvs/wesnoth/branches/ogl/src/video.cpp?revision=46911&view=markup
Comment 7 darkbasic 2011-02-20 15:40:07 UTC
Corruption is solved, but it's slow as hell. Just unplayable.


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.