diff options
author | Chia-I Wu <[email protected]> | 2015-02-13 03:54:32 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-02-14 06:52:36 +0800 |
commit | baba8b2745e0036dbac0350a344bb86278fdb673 (patch) | |
tree | 7f55522010729392a5a3d7e91acaa87255140424 /src/gallium | |
parent | c944b91190048e370d2adc362f0860d9f58e58f2 (diff) |
ilo: fix 3DSTATE_VF_TOPOLOGY
The pipe primitive type was wrongly translated twice.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_render_gen8.c | 3 |
1 files changed, 1 insertions, 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, |