Running with all workarounds disabled, this change doesn't fix anything nor 
seem to make any difference, but anyway:
Shouldn't the cache flush bits be in dword 0 for gen4 GEN4_PIPE_CONTROL? Maybe 
gen5 also?

diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 1d164b6..894418b 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -575,8 +575,10 @@ inline static void
 gen4_emit_pipe_flush(struct sna *sna)
 {
 #if 1
-       OUT_BATCH(GEN4_PIPE_CONTROL | (4 - 2));
-       OUT_BATCH(GEN4_PIPE_CONTROL_WC_FLUSH);
+       OUT_BATCH(GEN4_PIPE_CONTROL |
+                 GEN4_PIPE_CONTROL_WC_FLUSH |
+                 (4 - 2));
+       OUT_BATCH(0);
        OUT_BATCH(0);
        OUT_BATCH(0);
 #else
@@ -601,8 +603,10 @@ inline static void
 gen4_emit_pipe_invalidate(struct sna *sna)
 {
 #if 0
-       OUT_BATCH(GEN4_PIPE_CONTROL | (4 - 2));
-       OUT_BATCH(GEN4_PIPE_CONTROL_WC_FLUSH | GEN4_PIPE_CONTROL_TC_FLUSH);
+       OUT_BATCH(GEN4_PIPE_CONTROL |
+                 GEN4_PIPE_CONTROL_WC_FLUSH | GEN4_PIPE_CONTROL_TC_FLUSH |
+                 (4 - 2));
+       OUT_BATCH(0);
        OUT_BATCH(0);
        OUT_BATCH(0);
 #else

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1098334

Title:
  [gen4 sna] Font corruption

Status in X.org xf86-video-intel:
  In Progress
Status in “xserver-xorg-video-intel” package in Ubuntu:
  Fix Released

Bug description:
  After enabling the SNA acceleration method and rebooting, I noticed
  that graphical glitches appeared in the letters on Chromium's tab bar
  during the mouse hover animation. I've attached a screenshot
  illustrating this, particularly with the letter "g" in the screenshot.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: xorg 1:7.7+1ubuntu4
  ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
  Uname: Linux 3.7.0-7-generic x86_64
  ApportVersion: 2.8-0ubuntu1
  Architecture: amd64
  Date: Thu Jan 10 16:00:55 2013
  InstallationDate: Installed on 2012-09-24 (107 days ago)
  InstallationMedia: Kubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 
(20120822.2)
  MarkForUpload: True
  SourcePackage: xorg
  UpgradeStatus: Upgraded to raring on 2012-09-25 (107 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1098334/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to