diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2008-02-12 15:13:37 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-12 15:13:37 +1100 |
commit | 5ba3dbe2cc8a9af5cae01f45eaf497f834400170 (patch) | |
tree | 03607e236723760a707db54ecfdb93d2ccbae18a /src/mesa/pipe/nv40/nv40_vbo.c | |
parent | af344660d7b77b8adad17cd8018253c8b08045cf (diff) |
nv40: fix inline u08/u16 indices
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_vbo.c')
-rw-r--r-- | src/mesa/pipe/nv40/nv40_vbo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/nv40/nv40_vbo.c b/src/mesa/pipe/nv40/nv40_vbo.c index 552058b3ae..4e9cdb4585 100644 --- a/src/mesa/pipe/nv40/nv40_vbo.c +++ b/src/mesa/pipe/nv40/nv40_vbo.c @@ -235,9 +235,9 @@ nv40_draw_elements_u08(struct nv40_context *nv40, void *ib, } while (count) { - push = MIN2(count, 2046); + push = MIN2(count, 2047 * 2); - BEGIN_RING_NI(curie, NV40TCL_VB_ELEMENT_U16, push); + BEGIN_RING_NI(curie, NV40TCL_VB_ELEMENT_U16, push >> 1); for (i = 0; i < push; i+=2) OUT_RING((elts[i+1] << 16) | elts[i]); @@ -260,9 +260,9 @@ nv40_draw_elements_u16(struct nv40_context *nv40, void *ib, } while (count) { - push = MIN2(count, 2046); + push = MIN2(count, 2047 * 2); - BEGIN_RING_NI(curie, NV40TCL_VB_ELEMENT_U16, push); + BEGIN_RING_NI(curie, NV40TCL_VB_ELEMENT_U16, push >> 1); for (i = 0; i < push; i+=2) OUT_RING((elts[i+1] << 16) | elts[i]); |