summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorFatih Aşıcı <[email protected]>2011-12-11 13:21:53 -0800
committerStephane Marchesin <[email protected]>2011-12-11 13:23:42 -0800
commit13632e64a0da67149d81bef2da42f159f8ddb1ea (patch)
tree6ab961ac5e12bf9ed826a426f35526c236f085e6 /src/gallium/drivers
parent45bb4b79f6ddd1fdb447632c88333866585fb80c (diff)
i915g: Fix wrong indices for LINE_LOOP case
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i915/i915_prim_vbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_prim_vbuf.c b/src/gallium/drivers/i915/i915_prim_vbuf.c
index 79db3b650eb..3f85466ba6e 100644
--- a/src/gallium/drivers/i915/i915_prim_vbuf.c
+++ b/src/gallium/drivers/i915/i915_prim_vbuf.c
@@ -400,8 +400,8 @@ draw_arrays_generate_indices(struct vbuf_render *render,
case PIPE_PRIM_LINE_LOOP:
if (nr >= 2) {
for (i = start + 1; i < end; i++)
- OUT_BATCH((i-0) | (i+0) << 16);
- OUT_BATCH((i-0) | ( start) << 16);
+ OUT_BATCH((i-1) | (i+0) << 16);
+ OUT_BATCH((i-1) | ( start) << 16);
}
break;
case PIPE_PRIM_QUADS: