nv04: use BEGIN_RING_NI
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 7 Jul 2008 23:30:48 +0000 (01:30 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 7 Jul 2008 23:30:48 +0000 (01:30 +0200)
src/gallium/drivers/nv04/nv04_prim_vbuf.c

index daf28e81f56b72d5bd8e47df857f5867b1773a57..80a4dbc311ca4c5b1ea198f87b6124cce8716089 100644 (file)
@@ -1,8 +1,4 @@
 
-// XXX this has to go somewhere else
-#define NONINC_METHOD 0x40000000
-
-
 #include "draw/draw_vbuf.h"
 #include "pipe/p_debug.h"
 #include "pipe/p_util.h"
@@ -160,7 +156,7 @@ static void nv04_vbuf_render_tri_strip_elts(struct nv04_vbuf_render* render, con
                for(j = 0; j<numvert; j++)
                        OUT_RINGp( buffer + VERTEX_SIZE * indices [i+j], 8 );
 
-               BEGIN_RING( fahrenheit, NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(0) | NONINC_METHOD, (numtri+1)/2 );
+               BEGIN_RING_NI( fahrenheit, NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(0), (numtri+1)/2 );
                for(j = 0; j<numtri/2; j++ )
                        OUT_RING(striptbl[j]);
                if (numtri%2)
@@ -190,7 +186,7 @@ static void nv04_vbuf_render_tri_fan_elts(struct nv04_vbuf_render* render, const
                for(j=0;j<numvert;j++)
                        OUT_RINGp( buffer + VERTEX_SIZE * indices[ i+j ], 8 );
 
-               BEGIN_RING(fahrenheit, NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(0) | NONINC_METHOD, (numtri+1)/2);
+               BEGIN_RING_NI(fahrenheit, NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(0), (numtri+1)/2);
                for(j = 0; j<numtri/2; j++)
                        OUT_RING(fantbl[j]);
                if (numtri%2)