diff options
author | Cooper Yuan <[email protected]> | 2009-09-05 20:58:32 +0800 |
---|---|---|
committer | Cooper Yuan <[email protected]> | 2009-09-05 20:58:32 +0800 |
commit | 9778731732b4753e79a1b786c65325a52392411d (patch) | |
tree | 2ef0a6f45fe37eb60d6f58dba91d33d8d35832a4 | |
parent | 80ea03bd174ab7824c754faa9944d7736bf513f2 (diff) |
r300g: update the value of register VAP_VF_MAX_VTX_INDX
according to actual vertex index count.
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |