From: Nicolai Hähnle Date: Thu, 15 Dec 2016 15:11:54 +0000 (+0100) Subject: radeonsi: num_records is in units of stride for swizzled buffers even on VI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e33910b0d977071dc715e8d0927ebb63c0b4647c;p=mesa.git radeonsi: num_records is in units of stride for swizzled buffers even on VI The old setting didn't hurt, but this is cleaner. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 5dfbd6603aa..6f0f414cdad 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -5872,8 +5872,6 @@ static void preload_ring_buffers(struct si_shader_context *ctx) assert(stride < (1 << 14)); num_records = 64; - if (ctx->screen->b.chip_class >= VI) - num_records *= stride; ring = LLVMBuildBitCast(builder, base_ring, v2i64, ""); tmp = LLVMBuildExtractElement(builder, ring, uint->zero, "");