Skip to content

Conversation

@damyanp
Copy link
Member

@damyanp damyanp commented Nov 6, 2025

Work in progress - this gets the "global" version working (global is what we have now). To do is adding the "independent device" version - this allows us to select the AgilitySDK using an absolute path which eventually will allow us to use these tests with lit without having to copy te.exe to strange places.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff bcb1bca39e5a1a1a2bbc78807633778b1f003306 f40b3fddc773a956ade735242882aa002d99c3e7 -- tools/clang/unittests/HLSLExec/ExecutionTest.cpp tools/clang/unittests/HLSLExec/HlslExecTestUtils.cpp tools/clang/unittests/HLSLExec/HlslExecTestUtils.h tools/clang/unittests/HLSLExec/LongVectors.cpp
View the diff from clang-format here.
diff --git a/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h b/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
index bc76cbbd..692b4b86 100644
--- a/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
+++ b/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
@@ -39,11 +39,11 @@ bool useDxbc();
 ///  directory. Absolute path is only supported on OS's that support
 ///  ID3D12DeviceFactory.
 ///
-///  D3D12SDKVersion: requested SDK version 
+///  D3D12SDKVersion: requested SDK version
 ///
-///    0: auto-detect (quietly fallback to inbox version) 
+///    0: auto-detect (quietly fallback to inbox version)
 ///
-///    1: auto-detect (fail if unable to use the auto-detected version) 
+///    1: auto-detect (fail if unable to use the auto-detected version)
 ///
 ///   >1: use specified version
 class D3D12SDK {
  • Check this box to apply formatting changes to this branch.

InitializeOpTests(void *pStrCtx, st::OutputStringFn pOutputStrFn) {
InitializeOpTests([[maybe_unused]] void *pStrCtx,
[[maybe_unused]] st::OutputStringFn pOutputStrFn) {
#ifdef _FORCE_EXPERIMENTAL_SHADERS
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change my view: in the original version of this, enableExperimentalMode will always return S_FALSE and not actually do anything.

Note that InitializeOpTests is called from that GUI thing that's a bit like godbolt, so there won't be any taef runtime params to look at. As far as I can tell, _FORCE_EXPERIMENTAL_SHADERS is never defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant