diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-13 14:04:13 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-13 14:15:05 +0100 |
commit | 045fae0f734a39cd24e444ac05382545dc7fdd2e (patch) | |
tree | feaf0db34305351ef1396252826d4e2cacab2c47 /src/amd/vulkan | |
parent | a66b186bebf9b63897199b9b6e26d40977417f74 (diff) |
ac: add ac_build_{struct,raw}_tbuffer_load() helpers
The struct version sets IDXEN=1, while the raw version sets IDXEN=0.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 3dd3e80f3b9..dbe4be907ec 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2181,12 +2181,13 @@ handle_vs_input_decl(struct radv_shader_context *ctx, t_offset = LLVMConstInt(ctx->ac.i32, attrib_binding, false); t_list = ac_build_load_to_sgpr(&ctx->ac, t_list_ptr, t_offset); - input = ac_build_tbuffer_load(&ctx->ac, t_list, buffer_index, - LLVMConstInt(ctx->ac.i32, attrib_offset, false), - ctx->ac.i32_0, ctx->ac.i32_0, - num_channels, - data_format, num_format, - false, false, true); + input = ac_build_struct_tbuffer_load(&ctx->ac, t_list, + buffer_index, + LLVMConstInt(ctx->ac.i32, attrib_offset, false), + ctx->ac.i32_0, ctx->ac.i32_0, + num_channels, + data_format, num_format, + false, false, true); if (ctx->options->key.vs.post_shuffle & (1 << attrib_index)) { if (num_channels > 1) { |