[Bug 32511] glDrawPixels broken on savage

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 8 14:40:18 PST 2011


--- Comment #10 from Tormod Volden <bugzi09.fdo.tormod at xoxy.net> 2011-01-08 14:40:18 PST ---
It seems like offsetting the aperture address fixes this issue. I am not sure
what is the proper place to do this, but this patch at least works for me. It
fixes drawpix and a lot of xscreensaver hacks: glblur works again,
molecule/polyhedra/juggler3d and many others are now free of corruption.
antspotlight works better, but sometimes hangs or dies, probably for unrelated

diff --git a/src/mesa/drivers/dri/savage/savagecontext.h
index 75bec62..2557605 100644
--- a/src/mesa/drivers/dri/savage/savagecontext.h
+++ b/src/mesa/drivers/dri/savage/savagecontext.h
@@ -311,9 +311,9 @@ extern int SAVAGE_DEBUG;
 #define DEBUG_DMA            0x010
 #define DEBUG_STATE          0x020

-#define TARGET_FRONT    0x0
-#define TARGET_BACK     0x1
-#define TARGET_DEPTH    0x2
+#define TARGET_FRONT    0x2
+#define TARGET_BACK     0x3
+#define TARGET_DEPTH    0x4

 #define SUBPIXEL_X -0.5
 #define SUBPIXEL_Y -0.375

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the dri-devel mailing list