Skip to content

[NFC] Pin the LinAlg execution tests to HLSL 2021 - #8801

Merged
Jack Elliott (JoeCitizen) merged 1 commit into
microsoft:mainfrom
JoeCitizen:linalg-hlk-hlsl-version-2021
Aug 19, 2026
Merged

[NFC] Pin the LinAlg execution tests to HLSL 2021#8801
Jack Elliott (JoeCitizen) merged 1 commit into
microsoft:mainfrom
JoeCitizen:linalg-hlk-hlsl-version-2021

Conversation

@JoeCitizen

@JoeCitizen Jack Elliott (JoeCitizen) commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

The LinAlg execution tests passed -HV 202x when compiling every shader. This isn't a requirement so just use 2021

The LinAlg execution tests passed -HV 202x when compiling every shader.
202x is an in-progress language version: DXC does not list it as a valid
argument, and rejecting an unknown version reports "Valid versions: 2015,
2016, 2017, 2018, and 2021". Conformance tests should not be pinned to a
language version that is still changing, so this pins them to 2021, the
newest released version and the one an unset -HV already selects
(LangStd::vLatest is v2021).

The switch is inert for these tests. Their shaders take every numeric
value from bound buffers through macro-typed elements and contain no
floating point literals, so the conforming-literal rules that distinguish
202x from 2021 cannot apply. Compiling the twelve LinAlg builtin codegen
shaders under both versions produces byte identical DXIL for eleven of
them; the twelfth differs only because it assigns an unsuffixed literal to
a double, and it does not request 202x in the first place.

The full HLSLExec LinAlg suite is unchanged per test against main on a
current D3D12 runtime: 59 total, 58 passed, 0 failed, 1 skipped, with no
D3D12 errors and no per-test differences.

Assisted-by: GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 83725f5d-8e98-4c1d-91ee-ad47629e007b
Copilot AI balanced review requested due to automatic review settings August 18, 2026 23:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Pins LinAlg execution-test shader compilation to stable HLSL 2021 instead of experimental 202x.

Changes:

  • Replaces -HV 202x with -HV 2021 across all LinAlg compiler-argument paths.
  • Preserves existing 16-bit type flags and test behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JoeCitizen
Jack Elliott (JoeCitizen) enabled auto-merge (squash) August 18, 2026 23:44
@JoeCitizen
Jack Elliott (JoeCitizen) merged commit c752193 into microsoft:main Aug 19, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants