mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2025-02-19 18:35:22 +00:00
spirv_type_constraints: account for OpUCount{Leading,Trailing}ZerosINTEL
usage.
This commit is contained in:
parent
71ef9a25cf
commit
d4da7f912d
@ -379,6 +379,9 @@ impl<'a, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'tcx> {
|
||||
if self.kernel_mode {
|
||||
self.cl_op(CLOp::ctz, ret_ty, [args[0].immediate()])
|
||||
} else {
|
||||
self.ext_inst
|
||||
.borrow_mut()
|
||||
.import_integer_functions_2_intel(self);
|
||||
self.emit()
|
||||
.u_count_trailing_zeros_intel(
|
||||
args[0].immediate().ty,
|
||||
|
@ -764,9 +764,11 @@ pub fn instruction_signatures(op: Op) -> Option<&'static [InstSig<'static>]> {
|
||||
// reserved!(SPV_EXT_demote_to_helper_invocation)
|
||||
}
|
||||
// SPV_INTEL_shader_integer_functions2
|
||||
Op::UCountLeadingZerosINTEL
|
||||
| Op::UCountTrailingZerosINTEL
|
||||
| Op::AbsISubINTEL
|
||||
Op::UCountLeadingZerosINTEL | Op::UCountTrailingZerosINTEL => {
|
||||
// NOTE(eddyb) we actually use these despite not being in the standard yet.
|
||||
// reserved!(SPV_INTEL_shader_integer_functions2)
|
||||
}
|
||||
Op::AbsISubINTEL
|
||||
| Op::AbsUSubINTEL
|
||||
| Op::IAddSatINTEL
|
||||
| Op::UAddSatINTEL
|
||||
|
Loading…
Reference in New Issue
Block a user