From: Chia-I Wu Date: Thu, 12 Feb 2015 19:54:32 +0000 (+0800) Subject: ilo: fix 3DSTATE_VF_TOPOLOGY X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=baba8b2745e0036dbac0350a344bb86278fdb673;p=mesa.git ilo: fix 3DSTATE_VF_TOPOLOGY The pipe primitive type was wrongly translated twice. --- 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,