Skip to content

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
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 <[email protected]>
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