Skip to content

Initial HLK test for GroupSharedLimit#8160

Open
JoeCitizen wants to merge 5 commits intomicrosoft:mainfrom
JoeCitizen:user/jackell/GroupSharedMemory_HLK
Open

Initial HLK test for GroupSharedLimit#8160
JoeCitizen wants to merge 5 commits intomicrosoft:mainfrom
JoeCitizen:user/jackell/GroupSharedMemory_HLK

Conversation

@JoeCitizen
Copy link
Collaborator

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

✅ With the latest revision this PR passed the C/C++ code formatter.

@JoeCitizen JoeCitizen marked this pull request as ready for review February 24, 2026 20:21
Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

Noted a few more (but not all of the) variable names that need updating.

@JoeCitizen JoeCitizen force-pushed the user/jackell/GroupSharedMemory_HLK branch from 8b7db59 to 1ceb7d4 Compare March 2, 2026 19:13
Copy link
Contributor

@alsepkow alsepkow left a comment

Choose a reason for hiding this comment

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

Leaving some feedback

readHlslDataIntoNewStream(L"ShaderOpArith.xml", &Stream, m_support);
st::ParseShaderOpSetFromStream(Stream, ShaderOpSet.get());

// Test 1: GroupSharedLimit that is >= usage should succeed.
Copy link
Contributor

Choose a reason for hiding this comment

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

For test 1,2,3 there seems to be a lot of duplicated code. Would it be worth factoring out common logic into a helper?

}
}

void ExecutionTest::GroupSharedLimitASTest() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shared logic with GroupSharedLimitMSTest looks ripe for some refactoring/shared helpers.

JoeCitizen added a commit to JoeCitizen/DirectXShaderCompiler that referenced this pull request Mar 3, 2026
- Add const qualifier to MaxGSMCS/MaxGSMAS/MaxGSMMS variables
- Add _HLK_CONF / FailIfRequirementsNotMet device creation logic
- Extract RunGSMLimitShaderAndVerify helper to reduce duplication
- Remove unused NUM_THREADS variables from CS test scopes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add const qualifier to MaxGSMCS/MaxGSMAS/MaxGSMMS variables
- Add _HLK_CONF / FailIfRequirementsNotMet device creation logic
- Extract RunGSMLimitShaderAndVerify helper to reduce duplication
- Remove unused NUM_THREADS variables from CS test scopes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JoeCitizen JoeCitizen force-pushed the user/jackell/GroupSharedMemory_HLK branch from 6ab7b1d to 17229ae Compare March 3, 2026 21:48
- Extract CreateGSMLimitTestDevice helper for device creation + HLK skip logic
- Use VERIFY_SUCCEEDED in getMaxGroupSharedMemory* instead of silent fallback
- Fix Test 2 comment wording per reviewer suggestion
- Use named constant GSM_BYTES_TEST2 instead of magic number 36864

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants