diff --git a/src/i915_3d.c b/src/i915_3d.c index d8edb181..942dbd17 100644 --- a/src/i915_3d.c +++ b/src/i915_3d.c @@ -77,9 +77,7 @@ void I915EmitInvarientState( ScrnInfoPtr pScrn ) /* Need to initialize this to zero. */ - OUT_RING(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | - I1_LOAD_S(3) | - (1)); + OUT_RING(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | 0); OUT_RING(0); /* XXX: Use this */ diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 4249869d..181fb89b 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -268,7 +268,7 @@ I915TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit) format |= MAPSURF_32BIT; BEGIN_LP_RING(6); - OUT_RING(_3DSTATE_MAP_STATE | (3 * (1 << unit))); + OUT_RING(_3DSTATE_MAP_STATE | 3); OUT_RING(1<drawable.height << MS3_HEIGHT_SHIFT) | @@ -286,7 +286,7 @@ I915TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit) BEGIN_LP_RING(6); /* max & min mip level ? or base mip level? */ - OUT_RING(_3DSTATE_SAMPLER_STATE | (3*(1<format); BEGIN_LP_RING(2); - OUT_RING(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(6) | 1); + OUT_RING(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(6) | 0); ss6 = S6_CBUF_BLEND_ENABLE | S6_COLOR_WRITE_ENABLE; OUT_RING(ss6 | (0 << S6_CBUF_BLEND_FUNC_SHIFT) | blendctl); ADVANCE_LP_RING();