summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/render-test/render-d3d11.cpp3
-rw-r--r--tools/slang-test/main.cpp5
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/render-test/render-d3d11.cpp b/tools/render-test/render-d3d11.cpp
index 65d66f812..c5c3f68b8 100644
--- a/tools/render-test/render-d3d11.cpp
+++ b/tools/render-test/render-d3d11.cpp
@@ -714,7 +714,8 @@ public:
if (request.computeShader.name)
{
auto dxComputeShaderBlob = compileHLSLShader(request.computeShader.source.path, request.computeShader.source.text, request.computeShader.name, request.computeShader.profile);
- if (!dxComputeShaderBlob) return nullptr;
+ if (!dxComputeShaderBlob)
+ return nullptr;
ID3D11ComputeShader* dxComputeShader;
diff --git a/tools/slang-test/main.cpp b/tools/slang-test/main.cpp
index 7cfa981ae..cb1730c6e 100644
--- a/tools/slang-test/main.cpp
+++ b/tools/slang-test/main.cpp
@@ -1137,6 +1137,7 @@ TestResult runComputeComparisonImpl(TestInput& input, const char * langOption, S
spawner.pushArgument("-o");
auto actualOutputFile = outputStem + ".actual.txt";
spawner.pushArgument(actualOutputFile);
+ spawner.pushArgument("-xslang -use-ir");
// clear the stale actual output file first. This will allow us to detect error if render-test fails and outputs nothing.
File::WriteAllText(actualOutputFile, "");
@@ -1183,8 +1184,8 @@ TestResult runComputeComparisonImpl(TestInput& input, const char * langOption, S
}
for (int i = 0; i < (int)referenceProgramOutput.Count(); i++)
{
- auto reference = referenceProgramOutput[i];
- auto actual = actualProgramOutput[i];
+ auto reference = String(referenceProgramOutput[i].Trim());
+ auto actual = String(actualProgramOutput[i].Trim());
if (actual != reference)
{
// try to parse reference as float, and compare again