From baba8b2745e0036dbac0350a344bb86278fdb673 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 13 Feb 2015 03:54:32 +0800 Subject: [PATCH] ilo: fix 3DSTATE_VF_TOPOLOGY The pipe primitive type was wrongly translated twice. --- src/gallium/drivers/ilo/ilo_render_gen8.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/ilo/ilo_render_gen8.c b/src/gallium/drivers/ilo/ilo_render_gen8.c index 54c0e20da51..4e2887e5bd3 100644 --- a/src/gallium/drivers/ilo/ilo_render_gen8.c +++ b/src/gallium/drivers/ilo/ilo_render_gen8.c @@ -257,7 +257,6 @@ gen8_draw_vf(struct ilo_render *r, const struct ilo_state_vector *vec, struct ilo_render_draw_session *session) { - const int prim = gen6_3d_translate_pipe_prim(vec->draw->mode); int i; /* 3DSTATE_INDEX_BUFFER */ @@ -278,7 +277,7 @@ gen8_draw_vf(struct ilo_render *r, if (DIRTY(VE)) gen6_3DSTATE_VERTEX_ELEMENTS(r->builder, vec->ve); - gen8_3DSTATE_VF_TOPOLOGY(r->builder, prim); + gen8_3DSTATE_VF_TOPOLOGY(r->builder, vec->draw->mode); for (i = 0; i < vec->ve->vb_count; i++) { gen8_3DSTATE_VF_INSTANCING(r->builder, i, -- 2.30.2