mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
glsl_to_tgsi: add fallthrough comments
All those cases are supposed to hit an assert in ir_binop_bit_or case. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5133>
This commit is contained in:
parent
38a4b86145
commit
e89d34aaca
1 changed files with 5 additions and 0 deletions
|
|
@ -1938,11 +1938,13 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op)
|
|||
emit_asm(ir, TGSI_OPCODE_NOT, result_dst, op[0]);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case ir_unop_u2f:
|
||||
if (native_integers) {
|
||||
emit_asm(ir, TGSI_OPCODE_U2F, result_dst, op[0]);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case ir_binop_lshift:
|
||||
case ir_binop_rshift:
|
||||
if (native_integers) {
|
||||
|
|
@ -1964,16 +1966,19 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op)
|
|||
emit_asm(ir, opcode, result_dst, op[0], count);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case ir_binop_bit_and:
|
||||
if (native_integers) {
|
||||
emit_asm(ir, TGSI_OPCODE_AND, result_dst, op[0], op[1]);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case ir_binop_bit_xor:
|
||||
if (native_integers) {
|
||||
emit_asm(ir, TGSI_OPCODE_XOR, result_dst, op[0], op[1]);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case ir_binop_bit_or:
|
||||
if (native_integers) {
|
||||
emit_asm(ir, TGSI_OPCODE_OR, result_dst, op[0], op[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue