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

MSL: Apply input override on all flattened members in interface block #2450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dboyan
Copy link
Contributor

@dboyan dboyan commented Feb 26, 2025

As in #2305, the current logic cannot properly apply input override on composite types. This change fixes the common case where the composite types are flattened into the interface block. The typing override is decoupled from location calculation so that it can be applied to all members. In the meantime, some common logics are consolidated.

Testing dEQP-VK.pipeline.monolithic.interface_matching.* on MoltenVK's VK_KHR_maintenance4 branch

Before the change:

  Passed:        454/1332 (34.1%)
  Failed:        138/1332 (10.4%)
  Not supported: 740/1332 (55.6%)

After the change:

  Passed:        556/1332 (41.7%)
  Failed:        36/1332 (2.7%)
  Not supported: 740/1332 (55.6%)

This fix eliminates all MSL compilation errors within the above CTS tests. The cases that are still failing are all related to tessellation shaders, which don't flatten composite types in interface blocks and require an independent fix.

As in KhronosGroup#2305, the current logic cannot properly apply input override on
composite types in interface block. This change fixes the common case
where the composite types are flattened into the interface block.
The typing override is decoupled from location calculation so that it can
be applied to all members. In the meantime, some common logics are
consolidated.
@dboyan dboyan force-pushed the fix-interface-matching branch from 768b06d to dcbb41f Compare February 26, 2025 08:21
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.

1 participant