From e33910b0d977071dc715e8d0927ebb63c0b4647c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 15 Dec 2016 16:11:54 +0100 Subject: [PATCH] radeonsi: num_records is in units of stride for swizzled buffers even on VI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The old setting didn't hurt, but this is cleaner. Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 5dfbd66..6f0f414 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, ""); -- 2.7.4