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

Handle exported functions in ADCE #4495

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

s-perron
Copy link
Collaborator

ADCE does not handle exported functions. This was an explicit decision
because we did not believe that the linkage attribute could be used in
shaders, but it can now. This change has been made.

While fixing this error, I noticed that the OpName for labels is
sometimes removed because the label instructions are not marked
explicitly marked as live. This has able been fixed.

ADCE does not handle exported functions.  This was an explicit decision
because we did not believe that the linkage attribute could be used in
shaders, but it can now.  This change has been made.

While fixing this error, I noticed that the OpName for labels is
sometimes removed because the label instructions are not marked
explicitly marked as live.  This has able been fixed.
@s-perron s-perron requested a review from jaebaek August 27, 2021 14:57
@s-perron s-perron self-assigned this Aug 27, 2021
@alan-baker
Copy link
Contributor

ADCE does not handle exported functions. This was an explicit decision
because we did not believe that the linkage attribute could be used in
shaders, but it can now.

Which extension changed this?

@s-perron
Copy link
Collaborator Author

I don't know about Vulkan, but DX can create libraries. The idea is to allow something similar to shader linking in DX: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/using-shader-linking. There is some work in DXC to emulate that behaviour. I think the plan is to do some type of linking in the driver. See microsoft/DirectXShaderCompiler#3234 (comment).

@s-perron s-perron requested a review from dnovillo August 31, 2021 14:26
@s-perron s-perron merged commit bd3a271 into KhronosGroup:master Aug 31, 2021
@s-perron
Copy link
Collaborator Author

@jiaolu FYI: this is now merged.

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.

None yet

2 participants