From c3e0ba52a0ac89c163ada8791151226b5a1b6efa Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 4 May 2020 10:43:07 -0400 Subject: ac/nir: support 16-bit data in buffer_load_format opcodes Reviewed-by: Samuel Pitoiset Part-of: --- src/gallium/drivers/radeonsi/si_compute_prim_discard.c | 2 +- src/gallium/drivers/radeonsi/si_shader_llvm_vs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c index 09a2d904a2b..2313f74a023 100644 --- a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c +++ b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c @@ -460,7 +460,7 @@ void si_build_prim_discard_compute_shader(struct si_shader_context *ctx) if (key->opt.cs_indexed) { for (unsigned i = 0; i < 3; i++) { index[i] = ac_build_buffer_load_format(&ctx->ac, input_indexbuf, index[i], ctx->ac.i32_0, - 1, 0, true); + 1, 0, true, false); index[i] = ac_to_integer(&ctx->ac, index[i]); } } diff --git a/src/gallium/drivers/radeonsi/si_shader_llvm_vs.c b/src/gallium/drivers/radeonsi/si_shader_llvm_vs.c index 081d7fb9087..69022cd7234 100644 --- a/src/gallium/drivers/radeonsi/si_shader_llvm_vs.c +++ b/src/gallium/drivers/radeonsi/si_shader_llvm_vs.c @@ -152,7 +152,7 @@ static void load_input_vs(struct si_shader_context *ctx, unsigned input_index, L for (unsigned i = 0; i < num_fetches; ++i) { LLVMValueRef voffset = LLVMConstInt(ctx->ac.i32, fetch_stride * i, 0); fetches[i] = ac_build_buffer_load_format(&ctx->ac, vb_desc, vertex_index, voffset, - channels_per_fetch, 0, true); + channels_per_fetch, 0, true, false); } if (num_fetches == 1 && channels_per_fetch > 1) { -- cgit v1.2.3