From 8df35b7b57ff12721556fa7d00b4e337134da374 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Sun, 26 Jul 2009 22:30:35 +0200 Subject: nouveau: only swizzle square textures for copy --- src/gallium/drivers/nv04/nv04_surface_2d.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/nv04/nv04_surface_2d.c b/src/gallium/drivers/nv04/nv04_surface_2d.c index ff4e51178d..aba40cfaff 100644 --- a/src/gallium/drivers/nv04/nv04_surface_2d.c +++ b/src/gallium/drivers/nv04/nv04_surface_2d.c @@ -263,10 +263,17 @@ nv04_surface_copy(struct nv04_surface_2d *ctx, struct pipe_surface *dst, int potHeight = 1<potHeight ? potHeight : potWidth); + int x,y; + + /* top left is always POT, but we can only swizzle squares */ + for (y=0; y0) { -- cgit v1.2.3