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

SPV_KHR_untyped_pointers extension does not allow untyped access chain instructions in OpSpecConstantOp #285

Open
vmaksimo opened this issue Oct 1, 2024 · 1 comment

Comments

@vmaksimo
Copy link

vmaksimo commented Oct 1, 2024

OpUntypedAccessChainKHR, OpUntypedInBoundsAccessChainKHR, OpUntypedPtrAccessChainKHR, OpUntypedInBoundsPtrAccessChainKHR are analogue instructions to their "typed" versions of access chain instructions.

It seems the extension should have extend the rules for OpSpecConstantOp by allowing untyped access chain operands to also be accepted. The only restriction the specification has is about the scope of the Base which can be found in untyped instructions as well:

for the AccessChain named opcodes, their Base is allowed to be a global (module scope) OpVariable instruction.

@bashbaug
Copy link
Collaborator

Hi, thank you for raising this issue. We plan to address it in an upcoming revision of the extension. Thanks again!

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

No branches or pull requests

2 participants