Correct swizzled surfaces patch
PATCH 1/1 Correct swizzled surfaces patch
My swizzling fix incorrectly used the dimensions of the copy rectangle instead of that of the destination surface. This patch fixes that.
src/gallium/drivers/nv04/nv04_surface_2d.c +2 -2
@@ -168,10 +168,10 @@ nv04_surface_copy_swizzle(struct nv04_surface_2d *ctx, sub_w =MIN2 (sub_w, w - x);/* Must be 64-byte aligned */ -assert (!((dst->offset +nv04_swizzle_bits (dx+x, dy+y, w, h) *util_format_get_blocksize (dst->texture->format)) &63 )); +assert (!((dst->offset +nv04_swizzle_bits (dx+x, dy+y, dst->width, dst->height) *util_format_get_blocksize (dst->texture->format)) &63 ));BEGIN_RING (chan, swzsurf,NV04_SWIZZLED_SURFACE_OFFSET ,1 ); -OUT_RELOCl (chan, dst_bo, dst->offset +nv04_swizzle_bits (dx+x, dy+y, w, h) *util_format_get_blocksize (dst->texture->format), +OUT_RELOCl (chan, dst_bo, dst->offset +nv04_swizzle_bits (dx+x, dy+y, dst->width, dst->height) *util_format_get_blocksize (dst->texture->format),NOUVEAU_BO_GART |NOUVEAU_BO_VRAM |NOUVEAU_BO_WR );BEGIN_RING (chan, sifm,NV04_SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION ,9 );
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau