microsoft/compiler: Fix unhandled switch case warnings
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7780>
This commit is contained in:
@@ -326,6 +326,7 @@ dump_attr_set_list(struct dxil_dumper *d, struct list_head *list)
|
|||||||
case DXIL_ATTR_KIND_NO_UNWIND: value = "nounwind"; break;
|
case DXIL_ATTR_KIND_NO_UNWIND: value = "nounwind"; break;
|
||||||
case DXIL_ATTR_KIND_READ_NONE: value = "readnone"; break;
|
case DXIL_ATTR_KIND_READ_NONE: value = "readnone"; break;
|
||||||
case DXIL_ATTR_KIND_READ_ONLY: value = "readonly"; break;
|
case DXIL_ATTR_KIND_READ_ONLY: value = "readonly"; break;
|
||||||
|
case DXIL_ATTR_KIND_NO_DUPLICATE: value = "noduplicate"; break;
|
||||||
}
|
}
|
||||||
_mesa_string_buffer_append(d->buf, value);
|
_mesa_string_buffer_append(d->buf, value);
|
||||||
}
|
}
|
||||||
|
@@ -777,6 +777,8 @@ dxil_nir_lower_loads_stores_to_dxil(nir_shader *nir)
|
|||||||
case nir_intrinsic_store_ssbo:
|
case nir_intrinsic_store_ssbo:
|
||||||
progress |= lower_store_ssbo(&b, intr);
|
progress |= lower_store_ssbo(&b, intr);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -851,6 +853,8 @@ dxil_nir_lower_atomics_to_dxil(nir_shader *nir)
|
|||||||
ATOMIC(comp_swap);
|
ATOMIC(comp_swap);
|
||||||
|
|
||||||
#undef ATOMIC
|
#undef ATOMIC
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1199,6 +1203,8 @@ lower_fp16_casts_filter(const nir_instr *instr, const void *data)
|
|||||||
case nir_op_f2f16_rtne:
|
case nir_op_f2f16_rtne:
|
||||||
case nir_op_f2f16_rtz:
|
case nir_op_f2f16_rtz:
|
||||||
return true;
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else if (instr->type == nir_instr_type_intrinsic) {
|
} else if (instr->type == nir_instr_type_intrinsic) {
|
||||||
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
|
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
|
||||||
@@ -1348,6 +1354,7 @@ lower_fp16_cast_impl(nir_builder *b, nir_instr *instr, void *data)
|
|||||||
case nir_op_f2f16_rtz:
|
case nir_op_f2f16_rtz:
|
||||||
mode = nir_rounding_mode_rtz;
|
mode = nir_rounding_mode_rtz;
|
||||||
break;
|
break;
|
||||||
|
default: unreachable("Should've been filtered");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
|
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
|
||||||
|
@@ -429,9 +429,9 @@ unary_func_name(enum dxil_intr intr)
|
|||||||
case DXIL_INTR_ISFINITE:
|
case DXIL_INTR_ISFINITE:
|
||||||
case DXIL_INTR_ISNORMAL:
|
case DXIL_INTR_ISNORMAL:
|
||||||
return "dx.op.isSpecialFloat";
|
return "dx.op.isSpecialFloat";
|
||||||
}
|
default:
|
||||||
|
|
||||||
return "dx.op.unary";
|
return "dx.op.unary";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct dxil_value *
|
static const struct dxil_value *
|
||||||
@@ -1609,6 +1609,8 @@ emit_cast(struct ntd_context *ctx, nir_alu_instr *alu,
|
|||||||
if (is_double(info->input_types[0], nir_src_bit_size(alu->src[0].src)))
|
if (is_double(info->input_types[0], nir_src_bit_size(alu->src[0].src)))
|
||||||
ctx->mod.feats.dx11_1_double_extensions = true;
|
ctx->mod.feats.dx11_1_double_extensions = true;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct dxil_value *v = dxil_emit_cast(&ctx->mod, opcode, type,
|
const struct dxil_value *v = dxil_emit_cast(&ctx->mod, opcode, type,
|
||||||
@@ -3591,6 +3593,10 @@ emit_tex(struct ntd_context *ctx, nir_tex_instr *instr)
|
|||||||
const struct dxil_value *retval = dxil_emit_extractval(&ctx->mod, sample, 3);
|
const struct dxil_value *retval = dxil_emit_extractval(&ctx->mod, sample, 3);
|
||||||
store_dest(ctx, &instr->dest, 0, retval, nir_alu_type_get_base_type(instr->dest_type));
|
store_dest(ctx, &instr->dest, 0, retval, nir_alu_type_get_base_type(instr->dest_type));
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "texture op: %d\n", instr->op);
|
||||||
|
unreachable("unknown texture op");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sample)
|
if (!sample)
|
||||||
|
Reference in New Issue
Block a user