Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
if (ins->type != BI_COMBINE) continue;
unsigned R = bi_make_temp_reg(ctx);
if (ins->type != BI_COMBINE) continue;
unsigned R = bi_make_temp_reg(ctx);
+ unsigned sz = nir_alu_type_get_type_size(ins->dest_type);
bi_foreach_src(ins, s) {
/* We're done early for vec2/3 */
bi_foreach_src(ins, s) {
/* We're done early for vec2/3 */
bi_insert_combine_mov(ctx, ins, s, R);
}
#endif
bi_insert_combine_mov(ctx, ins, s, R);
}
#endif
- if (ins->dest_type == nir_type_uint32)
bi_combine_mov32(ctx, ins, s, R);
bi_combine_mov32(ctx, ins, s, R);
bi_combine_sel16(ctx, ins, s, R);
s++;
bi_combine_sel16(ctx, ins, s, R);
s++;
+ } else {
+ unreachable("Unknown COMBINE size");