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

[spirv] Fix generating array type in SPIR-V #7863

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Apr 21, 2023

Issue: fixes #7855

Brief Summary

🤖 Generated by Copilot at 8f35995

Fix array size encoding bug in SPIR-V backend. Use int_immediate_number to create SPIR-V constants for array types in spirv_types.cpp.

Walkthrough

🤖 Generated by Copilot at 8f35995

  • Fix a bug where array size was not encoded as a SPIR-V constant (link)
  • Use int_immediate_number to create a constant operand for OpTypeArray (link)

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 8f35995
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/64422648cd873000083af5fb
😎 Deploy Preview https://deploy-preview-7863--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@lin-hitonami lin-hitonami requested a review from bobcao3 April 21, 2023 07:21
Copy link
Collaborator

@bobcao3 bobcao3 left a comment

Choose a reason for hiding this comment

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

LGTM

@bobcao3 bobcao3 merged commit 9b1f484 into taichi-dev:master Apr 21, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: fixes taichi-dev#7855

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 8f35995</samp>

Fix array size encoding bug in SPIR-V backend. Use
`int_immediate_number` to create SPIR-V constants for array types in
`spirv_types.cpp`.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at 8f35995</samp>

* Fix a bug where array size was not encoded as a SPIR-V constant
([link](https://github.com/taichi-dev/taichi/pull/7863/files?diff=unified&w=0#diff-259a89b8645aab6065eac94864cd4930be7ae91da5cb2e15307ae5fa41015962L456-R459))
* Use `int_immediate_number` to create a constant operand for
`OpTypeArray`
([link](https://github.com/taichi-dev/taichi/pull/7863/files?diff=unified&w=0#diff-259a89b8645aab6065eac94864cd4930be7ae91da5cb2e15307ae5fa41015962L456-R459))
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.

The generation of spirv array type is wrong
2 participants