Created attachment 49803 [details] Minecraft All the blocks in the world seem to have what look like crawling black ants on them, specifically around the edges (this is also happening in other games, not just Minecraft). System environment: -- chipset: Sandybridge (HD3000) -- system architecture: 64-bit -- xf86-video-intel: 2.15.0 -- xserver: 1.10.3 -- mesa: 7.11 -- libdrm: 7.11 -- kernel: 3.0 -- Linux distribution: Arch -- Machine or mobo model: Dell XPS 15 L502X -- Display connector: LVDS
Forgot to mention that the game runs unplayably slow, 2fps or so. Not sure if it's related as the hardware is clearly enough to cope.
Bug affects me as well. Happens in other games, but seems to show up the worst in Minecraft.
*** Bug 39732 has been marked as a duplicate of this bug. ***
*** Bug 39733 has been marked as a duplicate of this bug. ***
Created attachment 50393 [details] Warcraft 3
Created attachment 50394 [details] SuperTuxKart
Created attachment 50395 [details] Spring Engine (NOTA)
Created attachment 50396 [details] Warzone 2100
Just adding to this list, I've found that this bug affects: Minecraft Stunt Racer Spring (the 3D TA remake engine) SuperTuxKart (specifically certain karts) Warzone 2100 I'm sure there are many others but that should be sufficient for now.
Also can be seen on the leaves and the back of the players head in UT2004.
Issue is not fixed in 7.11. It also happens across all distros that I've tried.
This bug is logged against 7.11 ;) (it just doesn't let you select it in the drop-down list). It's still an issue with current GIT too.
*** Bug 35165 has been marked as a duplicate of this bug. ***
I've observed that the artifacts can be temporary removed by the debugfs API on my affected game. mkdir /tmp/debugfs mount -t debugfs /tmp/debugfs /tmp/debugfs echo 1 > /tmp/debugfs/dri/0/i915_wedged Could be a clue?
I noticed that installing the AdventureCraft mod for Minecraft actually prevents this from happening. Every now and then you can see the artifacts, but they quickly disappear.
*** Bug 40544 has been marked as a duplicate of this bug. ***
I'm deciding that this bug report is now only about SuperTuxKart, so we can focus on that. It may all be related, but talk about the other apps will only serve as a distraction from solving the problem. Steps to reproduce: 1) start supertuxkart 2) choose "race" 3) mouseover the purple bird character 4) Observe flickering pixels By forcing alphatest off (brw_draw.c: smash ctx->Color.AlphaEnabled to false), the flickering goes away. Most of the alpha-enabled drawing in the app uses (GL_GREATER, 0.0), while the two failing characters use (GL_GREATER, 0.5). Switching to GL_ALWAYS doesn't workaround, nor does disabling the alpha test bit in the CC unit. always_flush_batch=true does not workaround, either.
Smashing the fb write to have an alpha of 1.0 also doesn't affect the problem, though it does show off the ways the app uses the alpha test.
Some trial and error on my end revealed that it's enough to remove ctx->Color.AlphaEnabled from the test in: In mesa/drivers/dri/i965/gen6_wm_state.c if (fp->program.UsesKill || ctx->Color.AlphaEnabled) dw5 |= GEN6_WM_KILL_ENABLE;
((forgot to say that above is no fix as it introduce other artifacts))
Any updates on the bug? And should a bug be filed against the Intel drivers?
Interesting. After a fresh reboot, I wasn't able to reproduce the problem until I ran Minecraft and looked at its artifacts for a while, at which point supertuxkart's artifacts came back.
The flickering pixels are kind of hit and miss for me. While they almost always appear in Minecraft, they don't always appear in the other games.
So there is no fix to this bug? I'm with all the git drivers and this error don't go away.
So far, it doesn't look like we have much information as to what's causing the problem. Might be tricky to see what's happening. I really hope that a fix is found, as this is driving me insane.
I do not know much about language C but I found this in mesa git, which seems to be related to our problem: http://cgit.freedesktop.org/mesa/mesa/commit/?id=367020d87ce8c27aeb58b3887fbd29d216fdc151
I don't know much about C either, but hopefully posting another comment will get some attention to this bug. I'm surprised this isn't affecting more people honestly. It seems like it would be easy to run into if you have a Sandy Bridge processor.
(In reply to comment #27) > I don't know much about C either, but hopefully posting another comment will > get some attention to this bug. > > I'm surprised this isn't affecting more people honestly. It seems like it would > be easy to run into if you have a Sandy Bridge processor. I think all people with our video card, are being affected by this problem but seem to not realize it yet as we have seen does not affect all programs. Frankly most people who use linux do not seek to use it for games, for that reason I think the fix for this bug will not be released soon by the fact that hardly anyone will notice this bug.
Two new Thinkpad Laptops I have are affected by the same issue, in minecraft as well as in other games. Recently I added i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 as kernel boot parameters to reduce the power consumption of these laptops. Interestingly, this seemed to reduce the frequency and duration of these artifacts. While they used to remain until I shut down the program, they now tend to disappear again after a few seconds. The system specs of one of the machines are: System: Host: skadi Kernel: 3.0-ARCH x86_64 (64 bit) Desktop Xfce 4.8.3 Distro: Arch Linux Machine: System: LENOVO product: 429136G version: ThinkPad X220 Mobo: LENOVO model: 429136G Bios: LENOVO version: 8DET41WW (1.11 ) date: 03/28/2011 CPU: Dual core Intel Core i7-2620M CPU (-HT-MCP-) clocked at 800.00 MHz Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller X.Org: 1.11.1 driver: intel Resolution: 1366x768@60.1hz GLX: Mesa DRI Intel Sandybridge Mobile GLX Version: 2.1 Mesa 7.11 If I can help with any more information or testing, please let me know.
(In reply to comment #29) > Two new Thinkpad Laptops I have are affected by the same issue, in minecraft as > well as in other games. Recently I added > > i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 > > as kernel boot parameters to reduce the power consumption of these laptops. > Interestingly, this seemed to reduce the frequency and duration of these > artifacts. While they used to remain until I shut down the program, they now > tend to disappear again after a few seconds. > > The system specs of one of the machines are: > > System: Host: skadi Kernel: 3.0-ARCH x86_64 (64 bit) Desktop Xfce 4.8.3 > Distro: Arch Linux > Machine: System: LENOVO product: 429136G version: ThinkPad X220 > Mobo: LENOVO model: 429136G Bios: LENOVO version: 8DET41WW (1.11 ) > date: 03/28/2011 > CPU: Dual core Intel Core i7-2620M CPU (-HT-MCP-) clocked at 800.00 MHz > Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics > Controller > X.Org: 1.11.1 driver: intel Resolution: 1366x768@60.1hz > GLX: Mesa DRI Intel Sandybridge Mobile GLX Version: 2.1 Mesa 7.11 > The behavior you're describing is what I was experiencing with the 2.6.39 kernel. The artifacts got noticably worse after upgrading to 3.x. > If I can help with any more information or testing, please let me know.
(In reply to comment #30) > (In reply to comment #29) > > Two new Thinkpad Laptops I have are affected by the same issue, in minecraft as > > well as in other games. Recently I added > > > > i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 > > > > as kernel boot parameters to reduce the power consumption of these laptops. > > Interestingly, this seemed to reduce the frequency and duration of these > > artifacts. While they used to remain until I shut down the program, they now > > tend to disappear again after a few seconds. > > > > The system specs of one of the machines are: > > > > System: Host: skadi Kernel: 3.0-ARCH x86_64 (64 bit) Desktop Xfce 4.8.3 > > Distro: Arch Linux > > Machine: System: LENOVO product: 429136G version: ThinkPad X220 > > Mobo: LENOVO model: 429136G Bios: LENOVO version: 8DET41WW (1.11 ) > > date: 03/28/2011 > > CPU: Dual core Intel Core i7-2620M CPU (-HT-MCP-) clocked at 800.00 MHz > > Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics > > Controller > > X.Org: 1.11.1 driver: intel Resolution: 1366x768@60.1hz > > GLX: Mesa DRI Intel Sandybridge Mobile GLX Version: 2.1 Mesa 7.11 > > > > The behavior you're describing is what I was experiencing with the 2.6.39 > kernel. The artifacts got noticably worse after upgrading to 3.x. > > If I can help with any more information or testing, please let me know. So our problem aren't in mesa drivers? Let's try change the kernel for old versions, or dev versions.
(In reply to comment #31) > So our problem aren't in mesa drivers? Let's try change the kernel for old > versions, or dev versions. It's unlikely that it isn't a bug with mesa, but something between kernel versions seems to have worsened the effect.
*** Bug 41993 has been marked as a duplicate of this bug. ***
*** Bug 41893 has been marked as a duplicate of this bug. ***
We finally isolated the issue by cutting down the "fire" demo to a minimal case and poking around at that. Proposed patch is at: http://lkml.indiana.edu/hypermail/linux/kernel/1111.0/02876.html You can apply that patch to test (and a Tested-by: would be appreciated if it fixes it), or as a one-shot fix you can try "sudo intel_reg_write 0x9404 0x00001000" from intel-gpu-tools (in any reports on success/failure of this test, please note which you tried. Also, the intel_reg_write workaround doesn't appear to take effect until your GPU has gone thoroughly idle for a while.
I have applied the proposede patch over Linux 3.1 kernel and it seems to solve the issues i reported on flightgear (#40544) I will test it more these days, however. Thank you very much ! :)
I have also applied that patch (onto the 3.1-rc6+ drm-intel-next) and it fixes my problems with Minecraft on Sandybridge. If you want to, you can add my tested-by: Michael "brot" Groh <brot@minad.de> Thanks for your help Eric!
I attempted to run the one-off fix but it came back with an error: [tstella@elmdor ~]$ sudo intel_reg_write 0x9404 0x00001000 Couldn't map MMIO region: No such file or directory xserver: 1.11.1.902 mesa 7.11-4 libdrm 2.4.27-1 kernel: 3.0 distro: Arch
I'm pretty sure the "Couldn't map MMIO region" error from intel_reg_write means your intel-gpu-tools is too old. We haven't done a release of that in a while, so you might need to install it from git. Or, just try the kernel patch (which is now upstream in Keith's drm-intel-next tree.)
Applying the patch on kernel 3.2-rc1 works for me, thanks to your help Eric. =D
Sorry for the hasty reply, but the benchmarks Unigine Tropics and Sanctuary continue the mistakes of pixels. But Heroes Of NewerEarth SuperTuxKart and were corrected.
It fixed the issues in Minecraft for me. And, seems to have improved the performance slightly. I still notice weird artifacts in other applications once Minecraft starts running, but this is far less annoying than the other bug. xorg-server - 1.11.2 mesa - 7.11 libdrm - 2.4.27 kernel - 3.1.0-4-ARCH distro - Arch 64bit
Created attachment 53359 [details] Screencap of artifact that still exists after quick solution Sorry about the double reply. Here is a screenshot of some of the artifacts that still exist. I didn't apply the patch; I used the one-line solution, if it makes any difference.
Running on Ubunut Ocelot (11.10) and a T420S (i5-2520M) -- I grabbed the latest intel-gpu-tools from git first to avoid the "Couldn't map MMIO region" error, then did: sudo ./intel_reg_write 0x9404 0x00001000 This entirely fixes the transparent pixel issues for me. (The main Minecraft guy's hand flickers briefly into a triangle now and then, but that's nothing by comparison.) Tons of thanks, Eric Anholt -- I'm using it for a pretty trivial purpose, but I'm really excited to be able to play games again. :) System information: -- chipset: Sandybridge (HD3000) -- system architecture: 64-bit -- xf86-video-intel: 2.15.0 -- xserver: 1.10.4 -- kernel: 3.0
This problem persists for me. I think the version of Mesa I have already implements the patch mentioned. I also tried the 'one shot' solution with no luck. ben@monitor:~$ uname -a Linux monitor 3.1.1-030101-generic #201111111651 SMP Fri Nov 11 21:52:29 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux ben@monitor:~$ cat /proc/cpuinfo model name : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid motherboard is a zotac any more info much appreciated (want to play minecraft on my new computer) ben
One-shot solution doesn't work for me. Warcraft 3 is not playable :/ Still pixels flickering I have to use Nvidia GPU (it works ok) Linux Mint 12 RC1. 2011/11/15 <bugzilla-daemon@freedesktop.org> > https://bugs.freedesktop.org/show_bug.cgi?id=39730 > > --- Comment #45 from windowsdowninthewinter@hush.com 2011-11-15 08:36:55 > PST --- > This problem persists for me. > > I think the version of Mesa I have already implements the patch mentioned. > I > also tried the 'one shot' solution with no luck. > > > ben@monitor:~$ uname -a > Linux monitor 3.1.1-030101-generic #201111111651 SMP Fri Nov 11 21:52:29 > UTC > 2011 x86_64 x86_64 x86_64 GNU/Linux > > > ben@monitor:~$ cat /proc/cpuinfo > model name : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx > rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr > pdcm > sse4_1 sse4_2 popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts > dts > tpr_shadow vnmi flexpriority ept vpid > > motherboard is a zotac > > any more info much appreciated (want to play minecraft on my new computer) > > > ben > > -- > Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug. >
(In reply to comment #45) > This problem persists for me. > > I think the version of Mesa I have already implements the patch mentioned. I > also tried the 'one shot' solution with no luck. > > > ben@monitor:~$ uname -a > Linux monitor 3.1.1-030101-generic #201111111651 SMP Fri Nov 11 21:52:29 UTC > 2011 x86_64 x86_64 x86_64 GNU/Linux > > > ben@monitor:~$ cat /proc/cpuinfo > model name : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm > sse4_1 sse4_2 popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts > tpr_shadow vnmi flexpriority ept vpid > > motherboard is a zotac > > any more info much appreciated (want to play minecraft on my new computer) > > > ben Hello buddy, you have to apply the patch on kernel source not on mesa. Try the patch, he works for me.
Can the people reporting they still have this problem comment on the following: 1. Did they apply the fix from just the first patch, or both? 2. If using the one-shot fix, did they execute the command before launching the app/game? The second patch is found on the same thread as the first: 1st: http://lkml.indiana.edu/hypermail/linux/kernel/1111.0/02876.html 2nd: http://lkml.indiana.edu/hypermail/linux/kernel/1111.0/02877.html The one-shot fix command that is equivalent to both patches is: sudo intel_reg_write 0x9404 0x00001800 (Note that the second value is 0x1800, not 0x1000) Also note that the one-shot fix does not survive a logout, reboot, or resume from suspend/hibernate.
I've successfully mitigated all flickering pixels using the one-shot fix in all games I currently have installed. (Supertuxkart, Neverwinter Nights and Vdrift) I've not tested patching the kernel for it yet. Some observations: If the problems had already appeared, the one-shot fix would not help the situation. It required a reboot or simulating a gpu wedging (i915_wedged, to trigger some kind of reset) before the flickering would disappear. Disclaimer: Observation made using the previous, /wrong/ 1000 number. I do however get more full solid flickers now, especially on shadows in Neverwinter Nights at certani camera angles. In supertuxkart it's much more rare, but sometimes kart flicker there. Tire tracks flicker more often, but I'm not sure this is a driver problem yet.
(In reply to comment #47) > (In reply to comment #45) > > This problem persists for me. > > > > I think the version of Mesa I have already implements the patch mentioned. I > > also tried the 'one shot' solution with no luck. > > > > > > ben@monitor:~$ uname -a > > Linux monitor 3.1.1-030101-generic #201111111651 SMP Fri Nov 11 21:52:29 UTC > > 2011 x86_64 x86_64 x86_64 GNU/Linux > > > > > > ben@monitor:~$ cat /proc/cpuinfo > > model name : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov > > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm > > sse4_1 sse4_2 popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts > > tpr_shadow vnmi flexpriority ept vpid > > > > motherboard is a zotac > > > > any more info much appreciated (want to play minecraft on my new computer) > > > > > > ben > > Hello buddy, you have to apply the patch on kernel source not on mesa. Try the > patch, he works for me. ok how does i?
Just to note, the temporary fix of running 'intel_reg_write 0x9404 0x00001800' fixes the crawling transparent pixels for me, but does not fix the various other glitches while running Minecraft (sporadic junk textures and incorrect texture coordinates appearing everywhere (including in applications outside of Minecraft)) - This probably ought to be a separate bug.
intel_reg_write 0x9404 0x00001800 do the job for me, I would like to install new kernel, can anybody tell me why 32-bit version is not avaiable http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/current/ ?
I'm just chiming in to say that the command 'intel_reg_write 0x9404 0x00001800' does fix this problem for me. Like Chris Lord said, though, there are still some other problems.
Can anyone see if the kernel patch solves the various other graphical glitches? Otherwise, the problem isn't entirely solved.
I was just wondering how I would install the kernel patch or where I could get a newer version of intel-gpu-tools because I get the MMIO error too.
For what it's worth, the patches are included in the 3.2 kernel which was just released. So you could use that.
(In reply to comment #56) > For what it's worth, the patches are included in the 3.2 kernel which was just > released. So you could use that. Yeah, I realized that now when I compiled my own version of 3.2. Thanks, it works now!
Closing this bug. We believe the primary issue here is fixed in the Linux 3.2 kernel, and many people seem to agree. I'm guessing most of the people who had trouble were either trying to use intel_reg_write had trouble patching the kernel. It sounds like a few people still have rendering glitches in various apps; feel free to open new bug reports and we'll take a look at them. I think that will be clearer and more useful for everyone than keeping this bug report open. Thanks for your patience.
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.