return unpack_param(&ctx->ac, ctx->tcs_out_layout, 0, 13);
}
+static LLVMValueRef
+get_tcs_out_vertex_stride(struct radv_shader_context *ctx)
+{
+ return unpack_param(&ctx->ac, ctx->tcs_out_layout, 13, 8);
+}
+
static LLVMValueRef
get_tcs_out_patch0_offset(struct radv_shader_context *ctx)
{
dw_addr = get_tcs_in_current_patch_offset(ctx);
} else {
if (!is_patch) {
- stride = unpack_param(&ctx->ac, ctx->tcs_out_layout, 13, 8);
+ stride = get_tcs_out_vertex_stride(ctx);
dw_addr = get_tcs_out_current_patch_offset(ctx);
} else {
dw_addr = get_tcs_out_current_patch_data_offset(ctx);
}
if (!is_patch) {
- stride = unpack_param(&ctx->ac, ctx->tcs_out_layout, 13, 8);
+ stride = get_tcs_out_vertex_stride(ctx);
dw_addr = get_tcs_out_current_patch_offset(ctx);
} else {
dw_addr = get_tcs_out_current_patch_data_offset(ctx);