From: Chia-I Wu Date: Wed, 8 Oct 2014 19:30:17 +0000 (+0800) Subject: ilo: fix rectlist on GEN7+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e50a32be6343bdcdbdb9e163bb3402216c72496;p=mesa.git ilo: fix rectlist on GEN7+ It was broken by 343b014b57ecc5431477e090100e6a26edbda540. 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 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);