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

Fix OpGroupAsyncCopy used with SPV_KHR_untyped_pointers #2819

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

Conversation

vmaksimo
Copy link
Contributor

No description provided.

@vmaksimo vmaksimo requested a review from MrSidims October 29, 2024 11:14
@@ -755,7 +755,8 @@ SPIRVType *LLVMToSPIRVBase::transPointerType(SPIRVType *ET, unsigned AddrSpc) {
return transPointerType(ET, SPIRAS_Private);
if (BM->isAllowedToUseExtension(ExtensionID::SPV_KHR_untyped_pointers) &&
!(ET->isTypeArray() || ET->isTypeVector() || ET->isTypeStruct() ||
ET->isTypeImage() || ET->isTypeSampler() || ET->isTypePipe())) {
ET->isTypeImage() || ET->isTypeSampler() || ET->isTypePipe() ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Guess we should merge #2820 first, right?

Copy link
Contributor

@MrSidims MrSidims left a comment

Choose a reason for hiding this comment

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

After offline discussion: we have to re-evaluate this patch. Reasons:

  • OpGroupAsyncCopy doesn't work well with opaque pointers in general;
  • regardless how OpGroupAsyncCopy would work - insertion of a bitcast is incorrect in this case

@vmaksimo vmaksimo marked this pull request as draft November 13, 2024 12:55
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