spirv-reader: explicitly error out on extended arithmetic

The feature is not yet finished in WGSL.

Fixed: tint:804
Change-Id: I5268126f68316e57ee60d099f2000223703845df
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55500
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
David Neto 2021-06-22 20:17:09 +00:00 committed by Tint LUCI CQ
parent c32e8f641b
commit f37f8df38b
1 changed files with 8 additions and 0 deletions

View File

@ -3540,6 +3540,14 @@ bool FunctionEmitter::EmitStatement(const spvtools::opt::Instruction& inst) {
}
break;
case SpvOpIAddCarry:
case SpvOpISubBorrow:
case SpvOpUMulExtended:
case SpvOpSMulExtended:
return Fail() << "extended arithmetic is not finalized for WGSL: "
"https://github.com/gpuweb/gpuweb/issues/1565: "
<< inst.PrettyPrint();
default:
break;
}