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

[spirv] Emit the grad and const offset image ops in the correct order #4576

Merged

Conversation

esullivan-nvidia
Copy link
Contributor

Currently the grad and const offset image operand ids are emitted in the incorrect order. This causes incorrect code gen if both the grad and const offset image operands are used.

https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#Image_Operands

This fixes the compilation error found when running TopSpin 2k25 through DXVK using the NVIDIA proprietary Vulkan driver.

ValveSoftware/Proton#7684

Currently the grad and const offset image operand ids are emitted in the
incorrect order. This causes incorrect code gen if both the grad and const
offset image operands are used.

This fixes the compilation error found when running TopSpin 2k25 through
DXVK using the NVIDIA proprietary Vulkan driver.
Copy link

@adamdmoss adamdmoss left a comment

Choose a reason for hiding this comment

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

LGTM according to my reading of the spec (and code)...

@doitsujin doitsujin merged commit 33498eb into doitsujin:master Jan 3, 2025
4 checks passed
@lahm911
Copy link

lahm911 commented Feb 15, 2025

Does this game Topspin work on Winlator

@K0bin
Copy link
Collaborator

K0bin commented Feb 15, 2025

We don't officially support Android and the DXVK repo is not the right place to ask whether a game works.

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

Successfully merging this pull request may close these issues.

5 participants