Fix STENCIL_WRITE_MASK defn for bug 5902
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 17 Feb 2006 17:03:14 +0000 (17:03 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 17 Feb 2006 17:03:14 +0000 (17:03 +0000)
src/mesa/drivers/dri/i915/i830_reg.h
src/mesa/drivers/dri/i915/i915_reg.h

index c45b88ca520cb9eca10b370244c58d9543fcf3a9..98cee2f214ceb2a130d94ab6191932e937aff9c7 100644 (file)
 #define STENCIL_TEST_MASK(x)           ((x)<<8)
 #define MODE4_ENABLE_STENCIL_WRITE_MASK        ((1<<16)|(0x00ff))
 #define ENABLE_STENCIL_WRITE_MASK      (1<<16)
-#define STENCIL_WRITE_MASK(x)          (x)
+#define STENCIL_WRITE_MASK(x)          ((x)&0xff)
 
 /* _3DSTATE_MODES_5, p196 */
 #define _3DSTATE_MODES_5_CMD           (CMD_3D|(0x0c<<24))
index e95d76c78fb917b222aecb0bb57920819a1b8223..3ba792a2342ec0d0bee84d17895af8e74394a484 100644 (file)
 #define STENCIL_TEST_MASK(x)           ((x)<<8)
 #define MODE4_ENABLE_STENCIL_WRITE_MASK        ((1<<16)|(0x00ff))
 #define ENABLE_STENCIL_WRITE_MASK      (1<<16)
-#define STENCIL_WRITE_MASK(x)          (x)
+#define STENCIL_WRITE_MASK(x)          ((x)&0xff)
 
 /* _3DSTATE_MODES_5, p220 */
 #define _3DSTATE_MODES_5_CMD           (CMD_3D|(0x0c<<24))