Skip to content

Fix OpGroupAsyncCopy used with SPV_KHR_untyped_pointers#2819

Draft
vmaksimo wants to merge 1 commit intoKhronosGroup:mainfrom
vmaksimo:untyped-fix-opgroupasynccopy
Draft

Fix OpGroupAsyncCopy used with SPV_KHR_untyped_pointers#2819
vmaksimo wants to merge 1 commit intoKhronosGroup:mainfrom
vmaksimo:untyped-fix-opgroupasynccopy

Conversation

@vmaksimo
Copy link
Copy Markdown
Contributor

No description provided.

@vmaksimo vmaksimo requested a review from MrSidims October 29, 2024 11:14
Comment thread lib/SPIRV/SPIRVWriter.cpp
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
Copy Markdown
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
Copy Markdown
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