From: Chia-I Wu Date: Tue, 11 Nov 2014 01:11:37 +0000 (+0800) Subject: ilo: prefix 3DSTATE_VF with gen75 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8abf4976c6efc11781170b957918128606f4a529;p=mesa.git ilo: prefix 3DSTATE_VF with gen75 3DSTATE_VF is Gen7.5+ only. Signed-off-by: Chia-I Wu --- diff --git a/src/gallium/drivers/ilo/ilo_builder_3d_top.h b/src/gallium/drivers/ilo/ilo_builder_3d_top.h index 697a47769b8..39bd1e5d278 100644 --- a/src/gallium/drivers/ilo/ilo_builder_3d_top.h +++ b/src/gallium/drivers/ilo/ilo_builder_3d_top.h @@ -311,9 +311,9 @@ gen7_3DSTATE_URB_GS(struct ilo_builder *builder, } static inline void -gen7_3DSTATE_VF(struct ilo_builder *builder, - bool enable_cut_index, - uint32_t cut_index) +gen75_3DSTATE_VF(struct ilo_builder *builder, + bool enable_cut_index, + uint32_t cut_index) { const uint8_t cmd_len = 2; uint32_t *dw; diff --git a/src/gallium/drivers/ilo/ilo_render_gen6.c b/src/gallium/drivers/ilo/ilo_render_gen6.c index 4221f694028..deaa5150068 100644 --- a/src/gallium/drivers/ilo/ilo_render_gen6.c +++ b/src/gallium/drivers/ilo/ilo_render_gen6.c @@ -447,7 +447,7 @@ gen6_draw_vf(struct ilo_render *r, /* 3DSTATE_VF */ if (session->primitive_restart_changed) { - gen7_3DSTATE_VF(r->builder, vec->draw->primitive_restart, + gen75_3DSTATE_VF(r->builder, vec->draw->primitive_restart, vec->draw->restart_index); } }