From 4e50a32be6343bdcdbdb9e163bb3402216c72496 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 9 Oct 2014 03:30:17 +0800 Subject: ilo: fix rectlist on GEN7+ It was broken by 343b014b57ecc5431477e090100e6a26edbda540. Signed-off-by: Chia-I Wu --- src/gallium/drivers/ilo/ilo_builder_3d_top.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/ilo/ilo_builder_3d_top.h b/src/gallium/drivers/ilo/ilo_builder_3d_top.h index 6d6fa0e65ac..85f1b3b3e28 100644 --- a/src/gallium/drivers/ilo/ilo_builder_3d_top.h +++ b/src/gallium/drivers/ilo/ilo_builder_3d_top.h @@ -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); -- cgit v1.2.3