diff options
| author | Bob Ellison <bob@lunarg.com> | 2018-12-20 16:47:38 -0700 |
|---|---|---|
| committer | Bob Ellison <45772930+lunarpapillo@users.noreply.github.com> | 2018-12-21 13:13:33 -0700 |
| commit | 53b8ef0069358ec7cd32bf6019ab24689b361c08 (patch) | |
| tree | 6f9c251360c7f875defb2dadd275febe947c5193 /scripts | |
| parent | 85bf42b02acb3f3287f9cb1a1a18d53b9da70a73 (diff) | |
| download | usermoji-53b8ef0069358ec7cd32bf6019ab24689b361c08.tar.xz | |
vulkaninfo: only query supported formats
vulkaninfo must not query formats that are not supported on a
given instance, as this provokes undefined behavior (it could
appear to work, or it could segfault in the driver).
These changes ensure that a format is only queried if it
is supported in either the base Vulkan instance or, if it is an
extension format, if that extension is supported by the Vulkan
instance.
- Moved instance version information to the AppInstance struct
(initialized by AppCreateInstance()), which makes sense and
allows lower-level code to determine whether a format is
supported on the current instance version
- Formats are now encoded with their owning Vulkan version
and extension name, so they can be checked for validity
before making a query.
Note that this change can cause behavior changes; instances
that didn't crash on unsupported formats (and thus appeared to
support more formats than they actually did) will no longer
report those formats. Instances that would segfault when
an unsupported formatn was queried should no longer crash.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
