From 5107b0312a9583fa897f0fb82889df62e19803c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timur=20Krist=C3=B3f?= Date: Tue, 25 Feb 2020 13:20:36 +0100 Subject: [PATCH] aco: Implement load_patch_vertices_in. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.30.2