mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
aco: Implement load_patch_vertices_in.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
This commit is contained in:
parent
6edf6ad130
commit
5107b0312a
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue