diff options
author | Marek Olšák <[email protected]> | 2020-05-04 10:43:07 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-06-02 16:29:25 -0400 |
commit | c3e0ba52a0ac89c163ada8791151226b5a1b6efa (patch) | |
tree | a977af7a25275192a81e424a1d35e2a2ca875b20 /src/gallium/drivers | |
parent | b819ba949b4f5aeef6f6b200247f9ec801774a54 (diff) |
ac/nir: support 16-bit data in buffer_load_format opcodes
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5003>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_prim_discard.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_llvm_vs.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) { |