HLSL-IR: ICE on inputAttachmentLoad builtin
Not supported by HLSL.
Bug: 368367513
Change-Id: I46b03aa06793fb36c7293dab38875ed39e3606be
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/210335
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: James Price <jrprice@google.com>
diff --git a/src/tint/lang/hlsl/writer/printer/printer.cc b/src/tint/lang/hlsl/writer/printer/printer.cc
index 2da44e1..2abb37a 100644
--- a/src/tint/lang/hlsl/writer/printer/printer.cc
+++ b/src/tint/lang/hlsl/writer/printer/printer.cc
@@ -1059,6 +1059,9 @@
case core::BuiltinFn::kQuadSwapDiagonal:
out << "QuadReadAcrossDiagonal";
break;
+ case core::BuiltinFn::kInputAttachmentLoad:
+ // WGSL extension: chromium_internal_input_attachments
+ TINT_ICE() << "HLSL does not support inputAttachmentLoad";
default:
TINT_UNREACHABLE() << "unhandled: " << func;
}
@@ -1519,6 +1522,7 @@
pre += "precise ";
}
if (attributes.color) {
+ // WGSL extension: chromium_experimental_framebuffer_fetch
TINT_ICE() << "HLSL does not support @color attribute";
}
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.dxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
index 3274e82..699df01 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.fxc.hlsl
@@ -1,6 +1,6 @@
-SKIP: FAILED
+SKIP: INVALID
-..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: TINT_UNREACHABLE unhandled: inputAttachmentLoad
+..\..\src\tint\lang\hlsl\writer\printer\printer.cc:1063 internal compiler error: HLSL does not support inputAttachmentLoad
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *