mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
nv40: fix inline u08/u16 indices
This commit is contained in:
parent
af344660d7
commit
5ba3dbe2cc
1 changed files with 4 additions and 4 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue