mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
i915: Messed up lineloop now works
This commit is contained in:
parent
e9b8df69b4
commit
de35bf5bdc
1 changed files with 3 additions and 3 deletions
|
|
@ -228,7 +228,7 @@ draw_arrays_generate_indices( struct vbuf_render *render,
|
|||
if (nr >= 2) {
|
||||
for (i = start + 1; i < end; i++)
|
||||
OUT_BATCH( (i-0) | (i+0) << 16 );
|
||||
OUT_BATCH( (i-0) | ( 0) << 16 );
|
||||
OUT_BATCH( (i-0) | ( start) << 16 );
|
||||
}
|
||||
break;
|
||||
case PIPE_PRIM_QUADS:
|
||||
|
|
@ -358,8 +358,8 @@ draw_generate_indices( struct vbuf_render *render,
|
|||
case PIPE_PRIM_LINE_LOOP:
|
||||
if (nr_indices >= 2) {
|
||||
for (i = 1; i < nr_indices; i++)
|
||||
OUT_BATCH( indices[i-0] | indices[i+0] << 16 );
|
||||
OUT_BATCH( indices[i-0] | indices[0] << 16 );
|
||||
OUT_BATCH( indices[i-1] | indices[i] << 16 );
|
||||
OUT_BATCH( indices[i-1] | indices[0] << 16 );
|
||||
}
|
||||
break;
|
||||
case PIPE_PRIM_QUADS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue