Use NONINC_METHOD for vertex data.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 19 Nov 2006 23:39:16 +0000 (23:39 +0000)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 19 Nov 2006 23:39:16 +0000 (23:39 +0000)
src/mesa/drivers/dri/nouveau/nouveau_ctrlreg.h
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 2f4c3f6d5d81ab119af507b4b35c68612b5113d5..c9b2d5900772aaaae454eb318634a1aa1ae7aaa0 100644 (file)
@@ -40,3 +40,5 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define NV03_FIFO_CMD_REWIND                               (NV03_FIFO_CMD_JUMP | (0 & NV03_FIFO_CMD_JUMP_OFFSET_MASK))
 
 
+#define NONINC_METHOD                                      0x40000000
+
index 48f41cf2fa79f0aa7fb919202f260721b9bd7556..f1289261825ed39f31af28076dd236a7d0960559 100644 (file)
@@ -82,11 +82,11 @@ static inline void nv10StartPrimitive(struct nouveau_context* nmesa,uint32_t pri
        OUT_RING(primitive);
 
        if (nmesa->screen->card->type==NV_10)
-               BEGIN_RING_SIZE(NvSub3D,NV10_TCL_PRIMITIVE_3D_VERTEX_ARRAY_DATA,size);
+               BEGIN_RING_SIZE(NvSub3D,NV10_TCL_PRIMITIVE_3D_VERTEX_ARRAY_DATA|NONINC_METHOD,size);
        else if (nmesa->screen->card->type==NV_20)
-               BEGIN_RING_SIZE(NvSub3D,NV20_TCL_PRIMITIVE_3D_VERTEX_DATA,size);
+               BEGIN_RING_SIZE(NvSub3D,NV20_TCL_PRIMITIVE_3D_VERTEX_DATA|NONINC_METHOD,size);
        else
-               BEGIN_RING_SIZE(NvSub3D,NV30_TCL_PRIMITIVE_3D_VERTEX_DATA,size);
+               BEGIN_RING_SIZE(NvSub3D,NV30_TCL_PRIMITIVE_3D_VERTEX_DATA|NONINC_METHOD,size);
 }
 
 inline void nv10FinishPrimitive(struct nouveau_context *nmesa)