diff options
-rw-r--r-- | src/amd/compiler/aco_instruction_selection.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |