mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 23:00:11 +01:00
nak: Fix lowering for patch_vertices_in
We have to grab the 2nd byte of the sysval for some reason. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
efbbc3ed93
commit
611fe837bb
1 changed files with 7 additions and 1 deletions
|
|
@ -623,8 +623,14 @@ nak_nir_lower_system_value_instr(nir_builder *b, nir_instr *instr, void *data)
|
|||
break;
|
||||
}
|
||||
|
||||
case nir_intrinsic_load_patch_vertices_in: {
|
||||
val = nir_load_sysval_nv(b, 32, .base = NAK_SV_VERTEX_COUNT,
|
||||
.access = ACCESS_CAN_REORDER);
|
||||
val = nir_extract_u8(b, val, nir_imm_int(b, 1));
|
||||
break;
|
||||
}
|
||||
|
||||
case nir_intrinsic_load_subgroup_invocation:
|
||||
case nir_intrinsic_load_patch_vertices_in:
|
||||
case nir_intrinsic_load_helper_invocation:
|
||||
case nir_intrinsic_load_invocation_id:
|
||||
case nir_intrinsic_load_local_invocation_index:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue