From: Timur Kristóf Date: Tue, 25 Feb 2020 12:20:36 +0000 (+0100) Subject: aco: Implement load_patch_vertices_in. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5107b0312a9583fa897f0fb82889df62e19803c5;p=mesa.git aco: Implement load_patch_vertices_in. Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index c8b10cf150f..0b5a62b0ea4 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -6875,6 +6875,14 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr) break; } + case nir_intrinsic_load_patch_vertices_in: { + assert(ctx->shader->info.stage == MESA_SHADER_TESS_CTRL || + ctx->shader->info.stage == MESA_SHADER_TESS_EVAL); + + Temp dst = get_ssa_temp(ctx, &instr->dest.ssa); + bld.copy(Definition(dst), Operand(ctx->args->options->key.tcs.input_vertices)); + break; + } case nir_intrinsic_emit_vertex_with_counter: { visit_emit_vertex_with_counter(ctx, instr); break;