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 <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle 2016-12-15 16:11:54 +01:00
parent 883ca597df
commit e33910b0d9

View 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, "");