From: Chia-I Wu Date: Tue, 27 Jan 2015 16:20:09 +0000 (+0800) Subject: ilo: update 3DSTATE_URB_x for Gen8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49306afe7bc5333df710dc071419111ed4d4a6fb;p=mesa.git ilo: update 3DSTATE_URB_x for Gen8 --- diff --git a/src/gallium/drivers/ilo/ilo_builder_3d_top.h b/src/gallium/drivers/ilo/ilo_builder_3d_top.h index 7a21370aebf..9102504f2c1 100644 --- a/src/gallium/drivers/ilo/ilo_builder_3d_top.h +++ b/src/gallium/drivers/ilo/ilo_builder_3d_top.h @@ -198,7 +198,7 @@ gen7_3dstate_urb(struct ilo_builder *builder, int alloc_size, num_entries, min_entries, max_entries; uint32_t *dw; - ILO_DEV_ASSERT(builder->dev, 7, 7.5); + ILO_DEV_ASSERT(builder->dev, 7, 8); /* VS, HS, DS, and GS variants */ assert(subop >= GEN7_RENDER_OPCODE_3DSTATE_URB_VS && @@ -229,6 +229,10 @@ gen7_3dstate_urb(struct ilo_builder *builder, switch (subop) { case GEN7_RENDER_OPCODE_3DSTATE_URB_VS: switch (ilo_dev_gen(builder->dev)) { + case ILO_GEN(8): + max_entries = 2560; + min_entries = 64; + break; case ILO_GEN(7.5): max_entries = (builder->dev->gt >= 2) ? 1664 : 640; min_entries = (builder->dev->gt >= 2) ? 64 : 32; @@ -255,6 +259,9 @@ gen7_3dstate_urb(struct ilo_builder *builder, break; case GEN7_RENDER_OPCODE_3DSTATE_URB_GS: switch (ilo_dev_gen(builder->dev)) { + case ILO_GEN(8): + max_entries = 960; + break; case ILO_GEN(7.5): max_entries = (builder->dev->gt >= 2) ? 640 : 256; break;