-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[bug] Fix flaky mass_spring_game_ggui.py on Mac M1 by setting up default values for VulkanCapabilities #6850
Conversation
… for VulkanCapabilities
✅ Deploy Preview for docsite-preview canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank youuuuu
taichi/rhi/vulkan/vulkan_device.h
Outdated
bool wide_line; | ||
bool surface; | ||
bool present; | ||
uint32_t vk_api_version = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: should use the bracket initializer syntax
uint32_t vk_api_version{0}
for more information, see https://pre-commit.ci
Question here: Why compiler didn't report 'use of uninitialized values' for the original code? |
I think this is a struct and it's "default initialized" as a struct object, just that the struct did not specify initial values of its members |
…ult values for VulkanCapabilities (taichi-dev#6850) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Mac M1 does not support
wide_line
with Vulkan. However, device capability was initialized to random values which is why some examples are flaky on M1.Before this PR: