Summary: | flickering decals, possible polygon offset problem | ||
---|---|---|---|
Product: | Mesa | Reporter: | Tobias Jakobi <liquid.acid> |
Component: | Drivers/DRI/i915 | Assignee: | haihao <haihao.xiang> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | brian.paul, liquid.acid, michael.fu |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 16029 | ||
Attachments: |
my xorg.conf
xorg logfile from last run glxinfo from my system patch for polygon offset |
Description
Tobias Jakobi
2007-08-19 08:16:45 UTC
The problem is still present with a recent MESA git version: git version 578641941f45c56deb382317a7ff7cad496679cf nanhai fixed a polygon offset issue in around end of Dec 2007. Would you please try the latest git? thanks. Hi Jakobi, Why do you think it is a polygon offset issue? I have fixed a polygon offset issue in commit 15653b5d88c0f88f49c2d5497b4fb9e045f53560 Would you please have a try? Sorry, but I've currently no access to the system I was filing the bug from (my notebook system). Furthermore I would habe to upgrade both mesa and xorg-server to GIT to make 3D acceleration work. I don't think this would be a good idea with the current state of the system (rather stable, except for the acceleration part). Was the commit before or after mesa tag 7.0.2 (that's the version that's currently installed on the system). I have to say that I didn't try any 3D games on the system recently, so the problem might not appear anymore - but I simply didn't recognize it. I'm checking if I can upgrade to GIT when I have access the system again. So long, Tobias Tobias, any update? I can confirm that the flickering doesn't appear with mesa 7.0.2, that's the version that's currently installed on the system. I can't update to GIT because I would have to update also xorg-server and a lot more packages. Sorry, but I resolve the bug to fixed. When mesa 7.0.3 is released together with the corresponding xorg-server update AND the bug reappears I'm going to reopen this report. To benefit from TTM and i915tex I did a massive GIT upgrade of core components. I'm now on mesa GIT (three days old). Must say that speed improvement is quite astonishing; wine's D3D emulation finally doesn't produce a slide show on my screen. Visual artifacts are there again, so I'm reopening this one. I should note that apparently i915tex was not used when mesa-7.0.2 was installed on my system. The intel driver seemed to load i915_dri.so and NOT i915tex_dri.so Deleting i915tex_dri.so didn't have any effect on 3d acceleration. On the other side deleting i915_dri.so and symlinking from i915tex_dri.so to it didn't work (DRM version didn't match - more precisely the DRM version was too old). This was on a 2.6.24 kernel with in-kernel DRM modules. I solved this problem by updating most of the core X and core DRM components to GIT (like xorg-server, libdrm, DRM kernel module, mesa, various xyzprotos). So the problem seems to be in i915tex and NOT in i915 (the old driver implementation). I had mesa-7.0.3 on this machine for a short time and didn't notice any change in decal behaviour there (no flickering, but also horrible performance). i915 with mesa-7.0.3 didn't have the decal problem. I don't see any differentiation between i915 and i915tex in the components selector, so I'm not changing this for now :-) (In reply to comment #8) > I should note that apparently i915tex was not used when mesa-7.0.2 was > installed on my system. > The intel driver seemed to load i915_dri.so and NOT i915tex_dri.so > > Deleting i915tex_dri.so didn't have any effect on 3d acceleration. On the other > side deleting i915_dri.so and symlinking from i915tex_dri.so to it didn't work > (DRM version didn't match - more precisely the DRM version was too old). > > This was on a 2.6.24 kernel with in-kernel DRM modules. I solved this problem > by updating most of the core X and core DRM components to GIT (like > xorg-server, libdrm, DRM kernel module, mesa, various xyzprotos). > > So the problem seems to be in i915tex and NOT in i915 (the old driver > implementation). i915tex is abandoned. please don't use it any more. thanks. > > I had mesa-7.0.3 on this machine for a short time and didn't notice any change > in decal behaviour there (no flickering, but also horrible performance). i915 > with mesa-7.0.3 didn't have the decal problem. > > I don't see any differentiation between i915 and i915tex in the components > selector, so I'm not changing this for now :-) > As I said this WAS with mesa-7.0.2!! Back then two drivers were build: i915tex and i915, with i915tex being the newer one. Current mesa GIT (which I'm using now) of course only builds ONE driver, which I'm using now and which DOES have the issues with the flickering decals. So this problem is NOT fixed! Greets, Tobias ok. I'll re-assign to haihao to see if he can reproduce this. Could you attach some log and config files, such as Xorg.0.log, xorg.conf, the result of glxinfo? Thanks. Created attachment 17253 [details]
my xorg.conf
Created attachment 17254 [details]
xorg logfile from last run
Created attachment 17255 [details]
glxinfo from my system
Any update on this one? I can provide some screenshots if that helps. Greets, Tobias You are using mesa7.1rc1(based on master), and according to comment #8, i915 with mesa-7.0.3 (based on mesa7_0_branch) didn't have the decal problem. If I understand correctly, this issue only occurs when using i915 with mesa master, right? (In reply to comment #17) > You are using mesa7.1rc1(based on master), and according to comment #8, i915 > with mesa-7.0.3 (based on mesa7_0_branch) didn't have the decal problem. Yes that's correct. Currently there is a mesa GIT (master branch) snapshot from 25. June 2008 installed on the system. The mesa build system of the master branch only creates one driver for the i915, that is i915_dri.so. Back when I was using mesa-7.0.3 two drivers were built: i915_dri.so and i915tex_dri.so The intel driver was loading the i915_dri.so driver. As already described manually forcing the load of the i915tex driver did NOT work because of the DRM kernel interface version number problem. The i915_dri.so driver from mesa-7.0.3 was slow, especially with framebuffer operations (glReadPixels, glDrawPixels, etc.) According to the mesa 6.5.2 release notes (http://www.mesa3d.org/relnotes-6.5.2.html) the i915_dri.so driver from mesa-7.0.3 was the old non-accelerated driver, and i915tex_dri.so the newer one with all the acceleration supported by TTM and co. I don't know exactly what happened during the development of mesa but I remember that the old i915 driver (non-accelerated version) was dropped in favor of the accerelated (tex-variant) version, and i915tex was renamed to i915. Is this even correct? > > If I understand correctly, this issue only occurs when using i915 with mesa > master, right? > Yes, the problem appeared when upgrading to mesa GIT master branch. With mesa-7.0.3 the problem did not appear. As stated above I think this is because the old non-accelerated driver was used. Greets, Tobias Created attachment 17409 [details] [review] patch for polygon offset Could you try this patch? Sure! Tested patch applied on current mesa master GIT (snapshot from today). Works for quake3 and cs 1.5 (through wine, opengl renderer), no more flickering of decals visible. Thanks Haihao for fixing this! If you have some additiona time, could you take a look at bug #16520 - also a i915 problem, possibly related to memory corruption (resulting in texture corruption). Cheers, Tobias Hi, Brian It seems the commit b755a2d9de5b7977c410a904a8adb7c07c88f82a breaks polygon offset on 915. The attached patch (see comment #19) was tested on 915, but I am not sure whether it breaks other DRI drivers, Could you take a look? Thanks Haihao Brian, Any comments? If this fix is right, I will check in it to git. I don't have time to fully test this, but it appears OK. I'd say go ahead and check it in. fixed in mesa 0c1e96e6d38c0acfd3fe6b4116f2a67f5bf62136 Mass version move, cvs -> git |
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.