More work on the swtcl
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 19 Nov 2006 23:16:29 +0000 (23:16 +0000)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 19 Nov 2006 23:16:29 +0000 (23:16 +0000)
src/mesa/drivers/dri/nouveau/nouveau_fifo.h
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index b738fa8ee1c3e23ad3dd9dbd1a8ccdf34a9d347e..da2dadada74852e3c41189414e794dcff6f70534 100644 (file)
@@ -60,7 +60,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #define OUT_RINGp(ptr,sz) do {                                                  \
 uint32_t* p=(uint32_t*)ptr;                                                    \
-int i; printf("OUT_RINGp:\n"); for(i=0;i<sz;i++) printf(" 0x%08x\n", *(p+i));  \
+int i; printf("OUT_RINGp: (size 0x%x dwords)\n",sz); for(i=0;i<sz;i++) printf(" 0x%08x\n", *(p+i));    \
 }while(0)
 
 #define OUT_RING(n) do {                                                        \
@@ -74,8 +74,8 @@ int i; printf("OUT_RINGp:\n"); for(i=0;i<sz;i++) printf(" 0x%08x\n", *(p+i));         \
 #else
 
 #define OUT_RINGp(ptr,sz) do{                                                  \
-       memcpy(nmesa->fifo.buffer+nmesa->fifo.current,ptr,sz);                  \
-       nmesa->fifo.current+=(sz/4);                                            \
+       memcpy(nmesa->fifo.buffer+nmesa->fifo.current,ptr,sz*4);                \
+       nmesa->fifo.current+=sz;                                                \
 }while(0)
 
 #define OUT_RING(n) do {                                                       \
index c1348b1363a2e475a8147bdb37e7a8292030381c..48f41cf2fa79f0aa7fb919202f260721b9bd7556 100644 (file)
@@ -549,8 +549,6 @@ static void nv10RenderStart(GLcontext *ctx)
 
 static void nv10RenderFinish(GLcontext *ctx)
 {
-       struct nouveau_context *nmesa = NOUVEAU_CONTEXT(ctx);
-       nv10FinishPrimitive(nmesa);
 }
 
 
@@ -618,7 +616,7 @@ void nv10TriInitFunctions(GLcontext *ctx)
        tnl->Driver.Render.Interp = _tnl_interp;
 
        _tnl_init_vertices( ctx, ctx->Const.MaxArrayLockSize + 12, 
-                       16 * sizeof(GLfloat) );
+                       64 * sizeof(GLfloat) );
 
        nmesa->verts = (GLubyte *)tnl->clipspace.vertex_buf;
 }