diff options
author | Nicolai Hähnle <[email protected]> | 2016-12-15 16:11:54 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-01-12 11:02:56 +0100 |
commit | e33910b0d977071dc715e8d0927ebb63c0b4647c (patch) | |
tree | df1b1e4e143480ef23b936c0ab28c33b1c4b4005 | |
parent | 883ca597df0debbf27431c218b2acb72986c52e2 (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 0 insertions, 2 deletions
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, ""); |