i915g: switch rendering to mipmapped textures to (x,y) offsets
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Dec 2010 20:04:56 +0000 (21:04 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 2 Dec 2010 00:34:13 +0000 (01:34 +0100)
commit8af684e37e7bacfc40aa9cd5f30ca1f692d0c62c
tree8b94eb167422428f181d9685ca0b54c51caba1f4
parent9493fe85d1b10efc06e8c34de31971dc6e6a6062
i915g: switch rendering to mipmapped textures to (x,y) offsets

Byte offsets simply don't work with tiled render targets when using
tiling bits. Luckily we can cox the hw into doing the right thing
with the DRAWING_RECT command by disabling the drawing rect offset
for the depth buffer.

Minor fixes by Jakob Bornecrantz.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
src/gallium/drivers/i915/i915_reg.h
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_surface.c