[Mesa-dev] [PATCH] i915g: Fix wrong indices for LINE_LOOP case

Stéphane Marchesin stephane.marchesin at gmail.com
Sun Dec 11 13:22:57 PST 2011


Applied, thanks!
Stéphane
2011/12/11 Fatih Aşıcı <fatih.asici at gmail.com>:
> ---
>  src/gallium/drivers/i915/i915_prim_vbuf.c |    4 ++--
>  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 79db3b6..3f85466 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:
> --
> 1.7.7.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list