nouveau: OUT_RINGp expects the size in dwords, not bytes.
authorBen Skeggs <darktama@iinet.net.au>
Mon, 5 Feb 2007 15:28:55 +0000 (02:28 +1100)
committerBen Skeggs <darktama@iinet.net.au>
Mon, 5 Feb 2007 15:29:20 +0000 (02:29 +1100)
This fixes the *actual* bug that the previous commit was supposed to fix..

src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 6f57b77..eec67bd 100644 (file)
@@ -196,9 +196,9 @@ static inline void nv10_render_generic_primitive_elts(GLcontext *ctx,GLuint star
        GLuint j;
 
        nv10ExtendPrimitive(nmesa, size_dword);
-       nv10StartPrimitive(nmesa,prim+1,size_dword*count);
+       nv10StartPrimitive(nmesa,prim+1,size_dword);
        for (j=start; j<count; j++ ) {
-               OUT_RINGp((nouveauVertex*)(vertptr+(elt[j]*vertsize)),vertsize);
+               OUT_RINGp((nouveauVertex*)(vertptr+(elt[j]*vertsize)),vertsize/4);
        }
        nv10FinishPrimitive(nmesa);
 }