From: Patrice Mandin Date: Sun, 26 Jul 2009 20:30:35 +0000 (+0200) Subject: nouveau: only swizzle square textures for copy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8df35b7b57ff12721556fa7d00b4e337134da374;p=mesa.git nouveau: only swizzle square textures for copy --- diff --git a/src/gallium/drivers/nv04/nv04_surface_2d.c b/src/gallium/drivers/nv04/nv04_surface_2d.c index ff4e51178dc..aba40cfaff7 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) {