Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get options also from the default target #6530

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

aleino-nv
Copy link
Collaborator

This helps to address issue #4760.

The particular issue motivating this fix is that
IGlobalSession::parseCommandLineArguments uses a temporary compile request to parse options.
The compile request only adds the OptionKind::ForceDXLayout (-fvk-use-dx-layout) to the "current target" which may be the default target, which IGlobalSession::parseCommandLineArguments didn't look for, meaning that options like ForceDXLayout were just ignored.
This leads to test failures in tests that rely on this option, e.g. tests/spirv/cbuffer-dx-layout-1.slang.

This helps to address issue shader-slang#4760.

The particular issue motivating this fix is that
IGlobalSession::parseCommandLineArguments uses a temporary compile request to parse
options.
The compile request only adds the OptionKind::ForceDXLayout (-fvk-use-dx-layout) to the
"current target" which may be the default target, which
IGlobalSession::parseCommandLineArguments didn't look for, meaning that options like
ForceDXLayout were just ignored.
This leads to test failures in tests that rely on this option, e.g.
tests/spirv/cbuffer-dx-layout-1.slang.
@aleino-nv aleino-nv requested a review from a team as a code owner March 6, 2025 12:32
@aleino-nv aleino-nv added the pr: non-breaking PRs without breaking changes label Mar 6, 2025
@aleino-nv aleino-nv enabled auto-merge (squash) March 6, 2025 15:19
@aleino-nv aleino-nv merged commit 55dd2de into shader-slang:master Mar 6, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants