Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@iskakaushik
Copy link
Contributor

There are additional instance extensions that need to be enabled for this. Having any one of them is sufficient on each of these platforms. There were also some VALIDATION_LOGs that would fail in the process of picking a valid physical device, this would incorrectly exit early when there were multiple devices and a latter device is valid.

Also improves logging for playground when glfw fails to get a surface.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

}
if (!HasRequiredProperties(device)) {
VALIDATION_LOG << "Device doesn't have required properties.";
FML_LOG(ERROR) << "Device doesn't have required properties.";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are no longer validation logs as there can be multiple physical devices and we don't need to fail early if one of them isn't valid.

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps just remove the log line entirely?

There are additional instance extensions that need to be enabled for
this. Having any one of them is sufficient on each of these platforms.
There were also some `VALIDATION_LOG`s that would fail in the process of
picking a valid physical device, this would incorrectly exit early when
there were multiple devices and a latter device is valid.

Also improves logging for playground when glfw fails to get a surface.
@iskakaushik
Copy link
Contributor Author

After #36776 lands we can see things rendering on Linux.

rect-works

Tested on WSL - Ubuntu.

}
if (!HasRequiredProperties(device)) {
VALIDATION_LOG << "Device doesn't have required properties.";
FML_LOG(ERROR) << "Device doesn't have required properties.";
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps just remove the log line entirely?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants