Mesa (gallium-0.2): nv50: fix progs/tests/manytex

Ben Skeggs darktama at kemper.freedesktop.org
Tue Jan 13 03:57:18 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: f883c14560fad2ab88744e3212776a338a96fb96
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f883c14560fad2ab88744e3212776a338a96fb96

Author: Ben Skeggs <skeggsb at gmail.com>
Date:   Tue Jan 13 13:25:14 2009 +1000

nv50: fix progs/tests/manytex

Previously all squares were textured with the same texture.. not quite what
the demo was supposed to look like!

---

 src/gallium/drivers/nv50/nv50_vbo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index f41bb92..435dc97 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -62,6 +62,8 @@ nv50_draw_arrays(struct pipe_context *pipe, unsigned mode, unsigned start,
 	OUT_RING  (0);
 	BEGIN_RING(tesla, 0x1440, 1);
 	OUT_RING  (0);
+	BEGIN_RING(tesla, 0x1334, 1);
+	OUT_RING  (0);
 
 	BEGIN_RING(tesla, NV50TCL_VERTEX_BEGIN, 1);
 	OUT_RING  (nv50_prim(mode));




More information about the mesa-commit mailing list