projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ea03b
)
r300g: update the value of register VAP_VF_MAX_VTX_INDX
author
Cooper Yuan
<cooperyuan@gmail.com>
Sat, 5 Sep 2009 12:58:32 +0000
(20:58 +0800)
committer
Cooper Yuan
<cooperyuan@gmail.com>
Sat, 5 Sep 2009 12:58:32 +0000
(20:58 +0800)
according to actual vertex index count.
src/gallium/drivers/r300/r300_render.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_render.c
b/src/gallium/drivers/r300/r300_render.c
index cd458d019ae93e5572fced0b3ff42311ef9aee8c..aced4ab8877d0d806e4b5253db1d65f8560cb679 100644
(file)
--- 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);