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 int casts #4814

Merged
merged 2 commits into from
Apr 20, 2022
Merged

Conversation

bobcao3
Copy link
Collaborator

@bobcao3 bobcao3 commented Apr 18, 2022

Fixes #4788

The old casting code has a bit of misunderstanding of Spirv's casting operators:

UConvert and SConvert are for same signed-ness bit extending or truncation. Bitcasts are for same width casts between different signed-ness.

Also fixes a buffer fill command warning about non-multiple of 4 sizes.

@bobcao3 bobcao3 requested review from yuanming-hu, k-ye and g1n0st April 18, 2022 22:13
@netlify
Copy link

netlify bot commented Apr 18, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 050b309
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/625de547537ec30008881f9e

@bobcao3 bobcao3 force-pushed the bobcao3/fix-spirv-int-casts branch from 662cea6 to 5d2ffba Compare April 18, 2022 22:24
@yuanming-hu yuanming-hu requested a review from turbo0628 April 19, 2022 16:19
@k-ye k-ye modified the milestone: Taichi v1.0.1 Apr 20, 2022
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

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

Thanks!

@k-ye k-ye merged commit 5265d4e into taichi-dev:master Apr 20, 2022
k-ye pushed a commit to k-ye/taichi that referenced this pull request May 5, 2022
* Fix integral type casting helper in spirv

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@bobcao3 bobcao3 deleted the bobcao3/fix-spirv-int-casts branch June 15, 2022 18:22
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.

[Vulkan] Weird compilation error
2 participants