ilo: prefix 3DSTATE_VF with gen75
authorChia-I Wu <olvaffe@gmail.com>
Tue, 11 Nov 2014 01:11:37 +0000 (09:11 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 11 Nov 2014 01:11:56 +0000 (09:11 +0800)
3DSTATE_VF is Gen7.5+ only.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_builder_3d_top.h
src/gallium/drivers/ilo/ilo_render_gen6.c

index 697a47769b803e801a6ddd31705ae4dd352a366a..39bd1e5d27839a6dfe6cad0619ced4595eb73d0a 100644 (file)
@@ -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;
index 4221f69402800e4ec113b08db0873e43245d6fce..deaa515006843b90a0ad1e8d6b17f7f847ff6c67 100644 (file)
@@ -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);
       }
    }