ilo: fix rectlist on GEN7+
authorChia-I Wu <olvaffe@gmail.com>
Wed, 8 Oct 2014 19:30:17 +0000 (03:30 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 8 Oct 2014 19:37:04 +0000 (03:37 +0800)
It was broken by 343b014b57ecc5431477e090100e6a26edbda540.

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

index 6d6fa0e65ac0e436bd46b311e3cdf778f438b01b..85f1b3b3e28ad1a04352cd913f015477bf09f198 100644 (file)
@@ -432,6 +432,9 @@ gen6_user_3DSTATE_VERTEX_BUFFERS(struct ilo_builder *builder,
    dw[0] = 0 << GEN6_VB_STATE_DW0_INDEX__SHIFT |
            GEN6_VB_STATE_DW0_ACCESS_VERTEXDATA |
            stride << GEN6_VB_STATE_DW0_PITCH__SHIFT;
+   if (ilo_dev_gen(builder->dev) >= ILO_GEN(7))
+      dw[0] |= GEN7_VB_STATE_DW0_ADDR_MODIFIED;
+
    dw[3] = 0;
 
    ilo_builder_batch_reloc(builder, pos + 1, bat->bo, vb_begin, 0);