-
Notifications
You must be signed in to change notification settings - Fork 245
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
Fix the invalid spirv generation for matrix cast #4588
Fix the invalid spirv generation for matrix cast #4588
Conversation
Were you able to reproduce the validation error locally without upgrading the vulkan sdk version? |
This PR will close #4589. |
Yes, I can. And now the issue is gone with this change. |
$ErrorActionPreference = "SilentlyContinue" | ||
where.exe spirv-dis | ||
spirv-dis --version | ||
$env:SLANG_RUN_SPIRV_VALIDATION='1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this change anymore.
The file "windows-selfhosted.yml" is delete at ToT.
The same functionality is implemented in ci.yml, which sets SLANG_RUN_SPIRV_VALIDATION correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I can remove this file from this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Spirv doesn't have instruction to do the float cast for the matrix type. So we have to convert the matrix row by row, and then construct them to a new matrix. Update the unit test to make sure the cast won't miss any elements.
f610eec
to
3721ef3
Compare
I rebase on TOT and remove the |
Spirv doesn't have instruction to do the float cast for the matrix type. So we have to convert the matrix row by row, and then construct them to a new matrix.
Update the unit test to make sure the cast won't miss any elements.
Also update the workflow to validate the spirv generation.