mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
spirv: add missing fallthrough comments
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
This commit is contained in:
parent
580fe89958
commit
cb8cd64411
1 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
|
|||
break;
|
||||
}
|
||||
|
||||
case SpvOpGroupNonUniformBallot: ++w;
|
||||
case SpvOpGroupNonUniformBallot: ++w; /* fallthrough */
|
||||
case SpvOpSubgroupBallotKHR: {
|
||||
vtn_fail_if(val->type->type != glsl_vector_type(GLSL_TYPE_UINT, 4),
|
||||
"OpGroupNonUniformBallot must return a uvec4");
|
||||
|
|
@ -177,14 +177,14 @@ vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
|
|||
break;
|
||||
}
|
||||
|
||||
case SpvOpGroupNonUniformBroadcastFirst: ++w;
|
||||
case SpvOpGroupNonUniformBroadcastFirst: ++w; /* fallthrough */
|
||||
case SpvOpSubgroupFirstInvocationKHR:
|
||||
vtn_build_subgroup_instr(b, nir_intrinsic_read_first_invocation,
|
||||
val->ssa, vtn_ssa_value(b, w[3]), NULL, 0, 0);
|
||||
break;
|
||||
|
||||
case SpvOpGroupNonUniformBroadcast:
|
||||
case SpvOpGroupBroadcast: ++w;
|
||||
case SpvOpGroupBroadcast: ++w; /* fallthrough */
|
||||
case SpvOpSubgroupReadInvocationKHR:
|
||||
vtn_build_subgroup_instr(b, nir_intrinsic_read_invocation,
|
||||
val->ssa, vtn_ssa_value(b, w[3]),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue