From: Marcin Ślusarz Date: Wed, 20 May 2020 19:29:15 +0000 (+0200) Subject: glsl_to_tgsi: add fallthrough comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e89d34aacab069c2074241ea0104705c18c9d67a;p=mesa.git 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 Reviewed-by: Tapani Pälli Part-of: --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 8eb0dda9fae..390e91deebd 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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]);