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 bool conversion bug in Vulkan code generator #8067

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

derek-gerstmann
Copy link
Contributor

SPIRVEmitter::convert_to_bool(...) was incorrectly passing the address of a byte vector, instead of its contents to builder.declare_constant(...)

As reported here:
#8064

address of a byte vector, instead of its contents to
builder.declare_constant()
@steven-johnson
Copy link
Contributor

Mac failure is irrelevant. (Does this need a test?)

@derek-gerstmann
Copy link
Contributor Author

Yes! Test case added.

@steven-johnson steven-johnson self-requested a review February 6, 2024 20:50
@steven-johnson steven-johnson merged commit 37153a9 into main Feb 7, 2024
18 of 19 checks passed
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Fix bug in Vulkan code generator that was incorrectly passing the
address of a byte vector, instead of its contents to
builder.declare_constant()

* Add bool_predicate_cast correctness test to verify bool conversion for
Vulkan codegen works as expected

---------

Co-authored-by: Derek Gerstmann <dgerstmann@adobe.com>
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