r300: fix regression caused by 056bc77547c304021a0faf204897ed238a5cf424
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 7 Jun 2009 20:51:46 +0000 (22:51 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 7 Jun 2009 21:21:14 +0000 (07:21 +1000)
Fixes GPU hangs in software TCL path

src/mesa/drivers/dri/r300/r300_swtcl.c

index ecc837745d31bcae4ed32392d5607ef10977c665..4a820648145b5ece58b9c19143a0be8acdef28ef 100644 (file)
@@ -219,6 +219,7 @@ void r300ChooseSwtclVertexFormat(GLcontext *ctx, GLuint *_InputsRead,  GLuint *_
                ADD_ATTR(VERT_ATTRIB_FOG, R300_DATA_TYPE_FLOAT_1, SWTCL_OVM_TEX(first_free_tex), swiz, MASK_XYZW, 0);
        }
 
+       R300_NEWPRIM(rmesa);
        rmesa->vbuf.num_attribs = num_attrs;
        *_InputsRead = InputsRead;
        *_OutputsWritten = OutputsWritten;