From 8af684e37e7bacfc40aa9cd5f30ca1f692d0c62c Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 1 Dec 2010 21:04:56 +0100 Subject: 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 Reviewed-by: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz --- src/gallium/drivers/i915/i915_surface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/i915/i915_surface.c') diff --git a/src/gallium/drivers/i915/i915_surface.c b/src/gallium/drivers/i915/i915_surface.c index 3a7d9ec407..8a09f930a0 100644 --- a/src/gallium/drivers/i915/i915_surface.c +++ b/src/gallium/drivers/i915/i915_surface.c @@ -193,6 +193,9 @@ i915_get_tex_surface(struct pipe_screen *screen, ps->height = u_minify(pt->height0, level); ps->offset = offset; ps->usage = flags; + ps->zslice = zslice; + ps->level = level; + ps->face = face; } return ps; } -- cgit v1.2.3