aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-16icd: Image memory sizelocke-lunarg
2020-04-15icd: Make VkPhysicalDevice uniquePetr Kraus
2020-04-14build: Remove glslang dependancy from known-goodJeremy Kniager
Removed glslang dependancy from known-good.json Change-Id: I12577690d3155734ab244fe9e7ef822fc374ba7d
2020-04-13build: Update known-good files for 1.2.137 headerShannon McPherson
Changes: - Updated known-good files - Generated new source files - Removed `VULKAN_HPP_NO_SMART_HANDLE` definition for `cube.cpp` Change-Id: Icb0152455f2c0b21a29d70462d05b958c53be861
2020-04-10icd: Make swapchain images persistentPetr Kraus
2020-04-10icd: Fix vkGetSwapchainImages behaviorPetr Kraus
- add missing lock - return correct values via return and count
2020-04-09Revert "icd: Fix vkGetSwapchainImages behavior"Mark Lobodzinski
This reverts commit 00573263e0. This caused the VkLayerTest.SwapchainAcquireTooManyImages2KHR test to fail, blocking CI. Change-Id: Id1464668e02dda50a37eb0fabb275eb897105eb4
2020-04-09Revert "icd: Make swapchain images persistent"Mark Lobodzinski
This reverts commit b40274e4. This caused the VkLayerTest.SwapchainAcquireTooManyImages2KHR test to fail, blocking CI. Change-Id: Ie0b5002544f0e467dd6d45beba9063ec96c73f67
2020-04-09mockicd: Track memory allocation sizeTobin Ehlis
Save the size of memory allocations. If a vkMapMemory is called on a known allocation with VK_WHOLE_SIZE, then map based on the actual size of the allocation.
2020-04-09icd: Make swapchain images persistentPetr Kraus
2020-04-09icd: Fix vkGetSwapchainImages behaviorPetr Kraus
- add missing lock - return correct values via return and count - bump to two images
2020-04-09icd: Fix vkAcquireNextImageKHR generationPetr Kraus
2020-04-08vulkaninfo: dynamically link vulkan on appleCharles Giessen
Due to difficulties setting up dynamic library loading on apple, the change to use dynamic loading has been reverted to a dynamic link. Change-Id: If980a327aa07669cc00aa4847dd4339a0ae42804
2020-04-08build: Update MoltenVK version in known-good.jsonJeremy Kniager
Updated MoltenVK version in `known-good.json` from: `v1.0.40` -> `v1.0.41` Change-Id: I81970e812a3916a6f4107398c8f4cb111882bbc3
2020-04-07mockicd: Make physical device staticMark Lobodzinski
PDev created at EnumPhysDevices time, but destroyed at DestroyInstance time. This crashes as EnumPhysDevices is not required to be called. Change-Id: I2dbfb694364eab57e5173565db795c5c70d458fc
2020-04-07vulkaninfo: fix app bundle not finding loaderCharles Giessen
The change of vulkaninfo to dlopen the loader broke the app bundle. This commit fixes it by manually setting up DYLD_LIBRARY_PATH before starting vulkaninfo, ensuring that it can be found.
2020-04-06cube: Pick non-SRGB surface formats firstJoshua Ashton
Pick some common non-SRGB formats first. RADV exposes SRGB formats first which causes incorrect rendering.
2020-04-06cube: Remove unncessary VK_FORMAT_UNDEFINED check for surface formatsJoshua Ashton
From the spec: The number of format pairs supported must be greater than or equal to 1. pSurfaceFormats must not contain an entry whose value for format is VK_FORMAT_UNDEFINED.
2020-04-03vulkaninfo: fix msvc warnings from wrapper classesCharles Giessen
Change-Id: Ie4ec90d05ba5c394df5d020eecee1c061e1010ac
2020-03-31build: Update glslang version in known-good.jsonJeremy Kniager
Updated the glslang commit ID in `known-good.json` to: `e157435c1e777aa1052f446dafed162b4a722e03` Change-Id: Icf25b210db414b6b7b1cfa26c127e825f394c23f
2020-03-30build: Update glslang commit ID in known-good.jsonJeremy Kniager
Updated the glslang commig ID in `known-good.json` to: `bfe4c5957fc51148a0aab6e04bb22020667c1092` Change-Id: I8eb0009be4ee1a3145d908b2659d7b9459aa45d5
2020-03-30travis: Add clang-format verions output to travisJeremy Kniager
Updated `.travis.yml` to output the clang-format version before running a clang-format check. Updated `check_code_format.sh` to include a suggestion to check the user's clang-format version if an error occures. Change-Id: I4328350cedb27998bd84a3d675eab51c89fb1a9e
2020-03-30docs: Update clang-format version in docsJeremy Kniager
Updated the clang-format version in CONTRIBUTING.md: `5.0.0` -> `7.0.0` Change-Id: I4d5cf4b228d3c6a689315a64dc2449c39e17d1bf
2020-03-28vulkaninfo: Fix lack of display throwing on linuxCharles Giessen
During the Error Handling refactor, this line was accidentally made throwing when before it simply reported an issue and kept going. Change-Id: Ia3b33749ee05037a5df22398ba8b628811fad29b
2020-03-20cube: Remove redundant memsetCharles Giessen
The C++ Vulkan headers will default initialize objects, not need to memset it. Change-Id: Icdc5cde13410bc7f0002c2d6d4075e79100fd86d
2020-03-19build: Update known-good for 1.2.135 headerShannon McPherson
Changes: - Updated known-good files - Generated new source files - Modified `object_type_string_helper.h` to address `vkcube` build failures - Modified `CMakeLists.txt` to enable beta extensions - Generated new `generate_vulkan_wrapper.py`, `vulkan_wrapper.cpp`, and `vulkan_wrapper.h` Change-Id: Ic7271350995e8caefbbb7a51ec206f465c59c510
2020-03-05generate_vulkan_layers_json.py: Fix Python 3 compatibilityRaul Tambre
json.dump() returns a string. Writing strings to a file opened in binary mode doesn't work. Python 2 doesn't properly distringuish bytes and strings. Open in non-binary mode, so this code works on both. Traceback (most recent call last): File "../../third_party/angle/third_party/vulkan-tools/src/build-gn/generate_vulkan_layers_json.py", line 126, in <module> sys.exit(main()) File "../../third_party/angle/third_party/vulkan-tools/src/build-gn/generate_vulkan_layers_json.py", line 83, in main json.dump(data, outfile) File "C:\Program Files\Python38\lib\json\__init__.py", line 180, in dump fp.write(chunk) TypeError: a bytes-like object is required, not 'str' Chromium bug: https://crbug.com/941669
2020-03-03vulkaninfo: Refactor error handlingCharles Giessen
Previously, if vulkaninfo encountered any errors, it shut down then and there. This is bad for json output where you are left with an invalid file. By using exceptions, vulkaninfo will catch errors, print it to cerr, then finish off the file so its left in a valid state. Change-Id: I2c0116b435713df6135b9c606fa95cfadbfdf8d8
2020-02-21vulkaninfo: dynamically load vulkanCharles Giessen
This commit makes it so that vulkaninfo will not statically link to the vulkan loader dll. This is to satisfy the Microsoft ApiValidator requirements. Change-Id: Ibac46dd13df9568e9a97ce1ba4e50613902848a1
2020-02-21vulkaninfo: Fix uninitialized surface capabilitiesCharles Giessen
Certain surface capabilities were being used in a comparison while unintialized if certain extensions were not supported. Change-Id: Iaa858a43a1b8bc0a2b42897d2d36a3630a474450
2020-02-21vulkaninfo: Fix uninitialized surface capabilitiesCharles Giessen
Certain surface capabilities were being used in a comparison while unintialized if certain extensions were not supported. Change-Id: Iaa858a43a1b8bc0a2b42897d2d36a3630a474450
2020-02-18build: Update known-good for 1.2.133 headerShannon McPherson
Change-Id: I2b790615e08f486264b9454f61630722fdbd9a29
2020-02-13vulkaninfo: support ASTC HDR formatsCharles Giessen
Adds the texture compressed ASTC HDR formats to vulkaninfo. Change-Id: I0177e6c2461386fb44ace426a21429b84986065e
2020-02-13vulkaninfo: Update VkFormat rangesCharles Giessen
The vulkan spec deprecated usage of the BEGIN END and RANGE enum values in the vulkan headers, thus necessitating a removal of those features in vulkaninfo. Change-Id: I56998cfddd647865e4078351e30e9687d6449fb9
2020-02-12vulkaninfo: new vkconfig_output backdendCharles Giessen
This commit adds a new backend, vkconfig_output, that prints the same information as the text & html versions in a json format. This output will only be used in vkconfig. Therefore it does not have a documented flag, but it is accesible with '--vkconfig_output'. Many parts of the code needed refactoring to handle the vkconfig_output output. Replacing PrintElement with PrintString, requiring StartObject instead of StartArray, and removing many branches to make the code simpler to read. vkconfig_output does not nest json objects within json arrays, thus keeping every non-leaf node of a json object named. files modified - scripts/vulkaninfo_generator.py - vulkaninfo/generated/vulkaninfo.hpp - vulkaninfo/outputprinter.h - vulkaninfo/vulkaninfo.cpp - vulkaninfo/vulkaninfo.h Change-Id: I33d036a75b65942db1ad62b2a1e0c341a2b5e36c
2020-02-10vulkaninfo: Check for surface extensionsCharles Giessen
Previously, vulkaninfo assumed the surface counter and surface capabilities 2 extensions were supported. Now it correctly checks for them. Files modified: vulkaninfo/vulkaninfo.cpp Change-Id: Ia5a8e22fd062f555d60ca0ebf27e06afbb1bb8cc
2020-02-10build: Fix android update not understanding headers versionPetr Kraus
2020-02-05vkcube: fix unknown CMake command errorTimo Gurr
CMake Error at cube/CMakeLists.txt:177 (CHECK_LIBRARY_EXISTS): Unknown CMake command "CHECK_LIBRARY_EXISTS".
2020-01-31build: Update known-good for 1.2.132 headerShannon McPherson
Change-Id: Idb6672495b2b42d45003efdbad868f41a96aa1e1
2020-01-29build: Update MoltenVK version in known_good.jsonJeremy Kniager
Updated MoltenVK version: `v1.0.38` -> `v1.0.40` Change-Id: Id51adc7234dffc7cf14560d6f30a0e07d8ef5f69
2020-01-28vulkaninfo: use patch version from instanceCharles Giessen
When the original vkEnumerateInstanceVersion was implemented, the loader always return 0 for the patch. This has since been corrected, but in the mean time vulkaninfo used the hardcoded VK_HEADER_VERSION to get the patch information. Now vulkaninfo will use the patch version from the instance, unless it is zero, in which it will then fallback to VK_HEADER_VERSION's patch. Changes to be committed: modified: vulkaninfo/vulkaninfo.h Change-Id: If0a63534253afadccbad50c6256cdef8016222c1
2020-01-27vulkaninfo: update readme, move vulkansdk.exe noteCharles Giessen
Fixed various markdown-lint errors and moved the note about vulkanSDK.exe to near the top of the document. Change-Id: I2025ef27ffb3ad27469dd903db9c2c1e04929708
2020-01-24vulkaninfo: use gpu version instead of instanceCharles Giessen
vulkaninfo would previously use the instance version for determining what capabilities to display. This leads to issues when running a 1.2 loader on a 1.1 or 1.0 driver. Changes to be committed: modified: vulkaninfo/vulkaninfo.cpp modified: vulkaninfo/vulkaninfo.h Change-Id: I7f12c10d48f99d429025337b00c677936a040d13
2020-01-24vulkaninfo: Update copyright date to include 2020Shannon McPherson
Change-Id: Icf6794ea4f43ba4a55792ed0054af34bcf7cded2
2020-01-24winRT: Update copyright date to include 2020Shannon McPherson
Update `VulkanRT-License.txt` to include 2020 in the copyright date Change-Id: I3b269c66c0aba3b218dad7bf9abfc016de50ec2e
2020-01-24vulkaninfo: remove duplicate flags/bitmasksCharles Giessen
Tooling info added flags for different purposes, however they let the debug utils, debug report and debug marker extensions use the same bitpos values for the same flags. The autogen didn't consider this possibly, and would output the flags multiple times. Changes to be committed: modified: scripts/vulkaninfo_generator.py modified: vulkaninfo/generated/vulkaninfo.hpp Change-Id: I7c7a648d9051f8ce2876083dfb0d2ddc2eb7ca95
2020-01-23vulkaninfo: Use a helper for the two-call idiomBenjamin Saunders
Drastically reduces repetition and ensures consistent error handling.
2020-01-23vulkaninfo: Fix UUID printingCharles Giessen
The output printers for UUID and LUID wouldn't retain the leading zero's, leading to an inaccurate hex string. Changes to be committed: modified: vulkaninfo/outputprinter.h Change-Id: I0834c00ca810d67a2849cdfb0a46db5e70158376
2020-01-22vulkaninfo: erroneous presentation surfacesCharles Giessen
In the commit to reduce unecessary surfaces being listed where only the surface extension differed, the which gpu the surface was using wasn't considered, creating a matrix of surfaces, when there should of been only 1. This fixes it by making sure to only collate surface extensions if they share a GPU. Change-Id: Ib0d17a229713b3e4cec6f2885f81c96c5232ee0b
2020-01-17vulkaninfo: update readme for Windows SDK name changeCharles Giessen
Due to IVH's shipping their own version of vulkaninfo through the vulkan runtime package, the vulkaninfo binary included in the Windows Vulkan SDK was renamed to `vulkaninfoSDK.exe` to prevent name conflicts. This commit fixes the lack of documentation in the readme about the change Changes to be committed: modified: vulkaninfo/vulkaninfo.md Change-Id: I7533eaa4ee5a915b36324f40a9ba4ced785710ff