-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layers: Move VK_EXT_robustness2 check to corechecks
- Loading branch information
1 parent
196627c
commit c4bb2de
Showing
7 changed files
with
56 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -751,6 +751,18 @@ void ValidationStateTracker::PostCreateDevice(const VkDeviceCreateInfo *pCreateI | |
has_robust_image_access = | ||
(api_version >= VK_API_VERSION_1_3 || IsExtEnabled(instance_extensions.vk_khr_get_physical_device_properties2)) && | ||
phys_dev_extensions.find(vvl::Extension::_VK_EXT_image_robustness) != phys_dev_extensions.end(); | ||
|
||
if (IsExtEnabled(instance_extensions.vk_khr_get_physical_device_properties2) && | ||
phys_dev_extensions.find(vvl::Extension::_VK_EXT_image_robustness) != phys_dev_extensions.end()) { | ||
VkPhysicalDeviceRobustness2FeaturesEXT robustness_2_features = vku::InitStructHelper(); | ||
VkPhysicalDeviceFeatures2 features2 = vku::InitStructHelper(&robustness_2_features); | ||
DispatchGetPhysicalDeviceFeatures2Helper(physical_device, &features2); | ||
has_robust_image_access2 = robustness_2_features.robustImageAccess2; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
spencer-lunarg
Author
Contributor
|
||
has_robust_buffer_access2 = robustness_2_features.robustBufferAccess2; | ||
} else { | ||
has_robust_image_access2 = false; | ||
has_robust_buffer_access2 = false; | ||
} | ||
} | ||
|
||
const auto &dev_ext = device_extensions; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We are getting crashes in SwiftShader around this line:
https://chromium-review.googlesource.com/c/angle/angle/+/6164685
https://ci.chromium.org/ui/p/angle/builders/try/linux-test/25042/overview
https://chromium-swarm.appspot.com/task?id=6e6568d7ba46de10
Are you missing some condition to enable this test?
Or does SwiftShader say that it supports the required extension, while in fact it doesn't?
@SoltiGG