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>
This commit is contained in:
James Price 2021-07-14 13:23:45 +00:00
parent 7f142c449f
commit 3ad686e8d4
3 changed files with 1 additions and 9 deletions

View File

@ -41,8 +41,6 @@ Result HlslUsingDXC(const std::string& dxc_path,
return result; return result;
} }
result.source = source;
utils::TmpFile file; utils::TmpFile file;
file << source; file << source;
@ -113,8 +111,6 @@ Result HlslUsingFXC(const std::string& source,
return result; return result;
} }
result.source = source;
for (auto ep : entry_points) { for (auto ep : entry_points) {
const char* profile = ""; const char* profile = "";
switch (ep.second) { switch (ep.second) {

View File

@ -32,10 +32,8 @@ Result Msl(const std::string& xcrun_path, const std::string& source) {
return result; return result;
} }
result.source = source;
utils::TmpFile file(".metal"); utils::TmpFile file(".metal");
file << result.source; file << source;
#ifdef _WIN32 #ifdef _WIN32
// On Windows, we should actually be running metal.exe from the Metal // On Windows, we should actually be running metal.exe from the Metal

View File

@ -37,8 +37,6 @@ struct Result {
bool failed = false; bool failed = false;
/// Output of DXC. /// Output of DXC.
std::string output; std::string output;
/// The generated source that was compiled
std::string source;
}; };
/// Hlsl attempts to compile the shader with DXC, verifying that the shader /// Hlsl attempts to compile the shader with DXC, verifying that the shader