radeonsi: num_records is in units of stride for swizzled buffers even on VI
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 15 Dec 2016 15:11:54 +0000 (16:11 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 12 Jan 2017 10:02:56 +0000 (11:02 +0100)
The old setting didn't hurt, but this is cleaner.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 5dfbd6603aad7f725e541bef97389e5e45eaff2f..6f0f414cdad18928d343d2b22f82ea07c6f82801 100644 (file)
@@ -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, "");