diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-07-19 19:27:53 -0400 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-07-19 19:27:53 -0400 |
commit | d5243d1b35ab1db608c81889819e4d4d87048154 (patch) | |
tree | 7707e78c8285698863b1e3b1a3917ed8f9cde0db /src/i915_exa_render.c | |
parent | 13e372c2095fde94ae41bea959fba0ad95a59c08 (diff) |
The height and width of texture maps are one more than the programmed values.
Diffstat (limited to 'src/i915_exa_render.c')
-rw-r--r-- | src/i915_exa_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 4cc9e546..4912d971 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -271,8 +271,8 @@ I915TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit) OUT_RING(_3DSTATE_MAP_STATE | 3); OUT_RING(1<<unit); OUT_RING(offset); /* Must be 4-byte aligned */ - ms3 = (pPix->drawable.height << MS3_HEIGHT_SHIFT) | - (pPix->drawable.width << MS3_WIDTH_SHIFT) | format; + ms3 = ((pPix->drawable.height - 1) << MS3_HEIGHT_SHIFT) | + ((pPix->drawable.width - 1) << MS3_WIDTH_SHIFT) | format; if (!pI830->disableTiling) ms3 |= MS3_USE_FENCE_REGS; OUT_RING(ms3); |