Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Add HLSL validation via FXC to CI #1918

Merged
merged 1 commit into from
May 22, 2022
Merged

Add HLSL validation via FXC to CI #1918

merged 1 commit into from
May 22, 2022

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented May 14, 2022

Added HLSL validation via FXC to CI since wgpu currently uses FXC for the D3D backends.

There are 4 issues with our current tests/backend that have to be resolved for FXC validation to succeed.

name=`echo $${vertex[i]} | cut -d \: -f 1`; \
profile=`echo $${vertex[i]} | cut -d \: -f 2`; \
sm=`echo $${profile} | cut -d \_ -f 2`; \
if (( sm < 6 )); then \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to add shader model version check?

Copy link
Member Author

Choose a reason for hiding this comment

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

FXC doesn't support any SM >= 6. When we add f16 support which requires SM6.2 the validation would fail but shouldn't.

@kvark kvark merged commit 62da3bf into gfx-rs:master May 22, 2022
@teoxoy teoxoy deleted the fxc-ci branch May 22, 2022 15:59
@jimblandy
Copy link
Member

Just noting: we merged this CI test before merging the PRs that would allow it to pass.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants