Bug 26103 - Planeshift is unplayable, almost everything is gray and white
Summary: Planeshift is unplayable, almost everything is gray and white
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/R600 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-18 12:26 UTC by darkbasic
Modified: 2010-08-25 16:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Silly patch to force SQ_TEX_DEPTH_COMPARE_ALWAYS (668 bytes, text/plain)
2010-01-18 15:29 UTC, Rafał Miłecki
Details

Description darkbasic 2010-01-18 12:26:02 UTC
There's nothing better than a screenshot:
http://darkbasic.homelinux.com/images/planeshift_bug.jpeg

I'm using xserver 1.7.4, mesa git, libdrm git, xf86-video-ati git and
linux-2.6.32.3+drm-radeon-testing. The OS is gentoo amd64 and kms is on.
Planeshift graphic is set to lowest.

Darkbasic
Comment 1 Rafał Miłecki 2010-01-18 15:29:32 UTC
Created attachment 32703 [details]
Silly patch to force SQ_TEX_DEPTH_COMPARE_ALWAYS

What is your GPU? Could you check this silly patch?
Comment 2 darkbasic 2010-01-18 15:58:58 UTC
It's a Radeon HD3870.
I tried the patch but it didn't work.
To be honest I'm not 100% sure I applied it because I used bashrcng-patching to apply it to mesa-9999.
If you can tell me how to change something stupid like the mesa revision number or something similar I can see with glxinfo, I will add it to the patch to see if bashrcng-patching works as it should.

Thank you
Comment 3 darkbasic 2010-01-19 02:53:52 UTC
I added theese lines to the patch:

diff --git a/src/mesa/main/version.h b/src/mesa/main/version.h
index 4f92353..9c758ce 100644
--- a/src/mesa/main/version.h
+++ b/src/mesa/main/version.h
@@ -32,7 +32,7 @@
 #define MESA_MAJOR 7
 #define MESA_MINOR 8
 #define MESA_PATCH 0
-#define MESA_VERSION_STRING "7.8-devel"
+#define MESA_VERSION_STRING "7.81-devel"

 /* To make version comparison easy */
 #define MESA_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))


gentoo niko # glxinfo | grep 'OpenGL version string'
OpenGL version string: 2.0 Mesa 7.81-devel

I'm now 100% sure the silly patch doesn't work.
Comment 4 Rafał Miłecki 2010-01-19 02:56:09 UTC
Yeah, that was just a silly try, thanks for testing.
Comment 5 Nikolay Rysev 2010-01-19 04:18:34 UTC
I have the same problem with Nexuiz on rv630.

kernel 2.6.33-rc4
libdrm-git
mesa-git
xf86-video-ati-git

KMS is on.
Comment 6 darkbasic 2010-01-19 04:28:35 UTC
Even with the lowest settings?
I have the same problems with nexuiz since the merging of glsl, but only with effects set to high or higher.
What is ALWAYS white in nexuiz is the first location in the piece-o-cake demo.
Comment 7 darkbasic 2010-01-20 06:50:51 UTC
I don't know if it is connected to the planeshift issue but this is nexuiz piece-o-cake first location (effects set to low):
http://darkbasic.homelinux.com/images/nexuiz_afterglsl1.jpeg

This is nexuiz with effects set to high:
http://darkbasic.homelinux.com/images/nexuiz_afterglsl2.jpeg

I noticed theese problems after the merging of the glsl patches.



This is nexuiz with effects set to low (every map except piece-o-cake):
http://darkbasic.homelinux.com/images/nexuiz_low.jpeg

Everything seems to be ok in the last screenshot (here I even enabled texture compression to test if it works).
Comment 8 darkbasic 2010-01-20 07:25:33 UTC
Full pslaunch.sh log:
http://pastebin.com/m2a21af5

In-game planeshift screenshot:
http://darkbasic.homelinux.com/images/planeshift_ingame.jpeg
Comment 9 darkbasic 2010-01-20 14:30:58 UTC
It's a texture compression related problem.
If I disable it (Video.OpenGL.MesaForceS3TCEnable = no in data/config/r3dopengl.cfg) it works.

Should I close the bug report?
Comment 10 Ian Romanick 2010-08-25 16:46:55 UTC
This sounds like a Crystal Space (the engine Planeshift uses) bug.  Please submit a bug with them.  Crystal Space shouldn't try to use S3TC if it's not exposed by the driver.


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.