From: Cooper Yuan Date: Sat, 5 Sep 2009 12:58:32 +0000 (+0800) Subject: r300g: update the value of register VAP_VF_MAX_VTX_INDX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9778731732b4753e79a1b786c65325a52392411d;p=mesa.git r300g: update the value of register VAP_VF_MAX_VTX_INDX according to actual vertex index count. --- diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index cd458d019ae..aced4ab8877 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -233,7 +233,8 @@ static void r300_render_draw(struct vbuf_render* render, OUT_CS_INDEX_RELOC(index_buffer, 0, count, RADEON_GEM_DOMAIN_GTT, 0, 0); END_CS; */ - BEGIN_CS(2 + (count+1)/2); + BEGIN_CS(4 + (count+1)/2); + OUT_CS_REG(R300_VAP_VF_MAX_VTX_INDX, count); OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, (count+1)/2); OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) | r300render->hwprim);