val: Remove source from validation result
This was just echoing back the source that was provided to the
validation routine, and is no longer uses by any callers.
Change-Id: I55aeb7c41405ebbe1b21b9654b94607b651ff118
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57281
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
diff --git a/src/val/hlsl.cc b/src/val/hlsl.cc
index 2a02f29..0a2d672 100644
--- a/src/val/hlsl.cc
+++ b/src/val/hlsl.cc
@@ -41,8 +41,6 @@
return result;
}
- result.source = source;
-
utils::TmpFile file;
file << source;
@@ -113,8 +111,6 @@
return result;
}
- result.source = source;
-
for (auto ep : entry_points) {
const char* profile = "";
switch (ep.second) {
diff --git a/src/val/msl.cc b/src/val/msl.cc
index 2b77a78..de34bdc 100644
--- a/src/val/msl.cc
+++ b/src/val/msl.cc
@@ -32,10 +32,8 @@
return result;
}
- result.source = source;
-
utils::TmpFile file(".metal");
- file << result.source;
+ file << source;
#ifdef _WIN32
// On Windows, we should actually be running metal.exe from the Metal
diff --git a/src/val/val.h b/src/val/val.h
index 233a868..31e83b9 100644
--- a/src/val/val.h
+++ b/src/val/val.h
@@ -37,8 +37,6 @@
bool failed = false;
/// Output of DXC.
std::string output;
- /// The generated source that was compiled
- std::string source;
};
/// Hlsl attempts to compile the shader with DXC, verifying that the shader