Fix a typo in i915 render

Fence setting is in mapstate actually. This fixes rotation in
tiled fb case, thanks Keith to report this.
This commit is contained in:
Zhenyu Wang 2007-07-23 09:50:17 +08:00
parent b1af2c0e01
commit 45962eed51
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ i915_texture_setup(PicturePtr pPict, PixmapPtr pPix, int unit)
((pPix->drawable.height - 1) << MS3_HEIGHT_SHIFT) |
((pPix->drawable.width - 1) << MS3_WIDTH_SHIFT);
if (pI830->tiling)
pI830->samplerstate[unit * 3 + 1] |= MS3_USE_FENCE_REGS;
pI830->mapstate[unit * 3 + 1] |= MS3_USE_FENCE_REGS;
pI830->mapstate[unit * 3 + 2] = ((pitch / 4) - 1) << MS4_PITCH_SHIFT;
pI830->samplerstate[unit * 3 + 0] = (MIPFILTER_NONE <<