Allow some texwrap testing. But just hack around for now .....
From 4f381482488cb522c8ed039168b8a4e2a0fd01f8 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <rand...@mail.ru>
Date: Tue, 2 Mar 2010 16:26:42 +0000
Subject: [PATCH] nouveau/nv04: temporary hack for texwrap demo, texture borders not implemented (no hw support?)

---
 src/mesa/drivers/dri/nouveau/nv04_surface.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv04_surface.c b/src/mesa/drivers/dri/nouveau/nv04_surface.c
index e3febf7..6233741 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_surface.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_surface.c
@@ -413,7 +413,8 @@ nv04_surface_copy(GLcontext *ctx,
 
 	/* Swizzle using sifm+swzsurf. */
         if (src->layout == LINEAR && dst->layout == SWIZZLED &&
-	    dst->cpp != 1 && !(dst->offset & 63)) {
+	    dst->cpp != 1 && !(dst->offset & 63) 
+	    && (_mesa_is_pow_two(dst->width) && _mesa_is_pow_two(dst->width))) {
 		nv04_surface_copy_swizzle(ctx, dst, src, dx, dy, sx, sy, w, h);
 		return;
 	}
-- 
1.6.5.4

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to