Skip to content

Library modules export all global variables regardless of SPIR-V version.#2632

Merged
HansKristian-Work merged 19 commits into
KhronosGroup:mainfrom
castano:6-library-mode-no-filter
May 12, 2026
Merged

Library modules export all global variables regardless of SPIR-V version.#2632
HansKristian-Work merged 19 commits into
KhronosGroup:mainfrom
castano:6-library-mode-no-filter

Conversation

@castano

@castano castano commented May 11, 2026

Copy link
Copy Markdown
Contributor

Per discussion in #2622, in SPIR-V 1.4 global variables must be declared by the OpEntryPoint's interface list. However, library modules do not have entry points, so default to the previous behavior and export all globals.

@HansKristian-Work

Copy link
Copy Markdown
Contributor

Shouldn't this be rebased? Having 10+ commits like this is just weird.

@HansKristian-Work

Copy link
Copy Markdown
Contributor

Anyway, it's trivial, so can take squash approach.

@HansKristian-Work HansKristian-Work merged commit d4c126d into KhronosGroup:main May 12, 2026
10 checks passed
@castano

castano commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

The commit sequence is the result of stacked PRs, but I think for the most part can be ignored, merging the PR squashes the changes.

@castano castano deleted the 6-library-mode-no-filter branch May 12, 2026 16:33
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.

2 participants