Commit Graph

396 Commits

Author SHA1 Message Date
Nicolas Caramelli 33adf476d6 loader: Add support for directfb surface extension
The new VK_EXT_directfb_surface extension is a WSI extension and
thereforce needs loader support like the other surface extensions.
2020-07-07 10:33:54 -06:00
Shannon McPherson 16869d0219 build: Update known-good files for 1.2.145 header
Changes:
- Updated `known_good.json`
- Propagated `loader_genvk.py` changes
- Modified scripts to accommodate new genvk functionality
- Generated new source files

Change-Id: If54251171bb3c70cef305d1e954aa02124432106
2020-06-22 11:08:36 -06:00
dan sinclair a7bedea290 scripts: Use named params for generator options
When calling in the vulkan header python generator the options have
changed in 1.2.142 which causes the options passed by the loader to be
off by one. This ends up setting the emitExtensions to the value of the
sortProcedure and eventually causes the script to fail.

This CL updates the loader to used named parameters for the generator so
that the addition of the genpath does not throw off the parameter
positioning.

Change-Id: I14fda7e90be985216c5243457a22fdcb01b5c82b
2020-06-09 16:24:23 -06:00
Shannon McPherson f6e909f8e3 Build: Update known-good files for 1.2.141 header
Change-Id: Ib5f2fab581fb98fa1391c8fde1009bb8bd1c09c7
2020-05-26 10:50:54 -06:00
Shannon McPherson b3998208cf build: Fix loader_genvk.py error logging
A modification to one line of code was missed when updating the loader
genvk file for the 1.2.140 header update and when the change was
incorporated it exposed the newly added `logDiag` function which can be
found in `reflib.py` in Vulkan-Docs. Instead of adding another script to
the Loader repo, `write` functionality was reinstated in
`loader_genvk.py`.

Change-Id: Idf792b24c86120a8c278f46ac8a47013c4c37f16
2020-05-05 11:02:53 -06:00
Shannon McPherson 6b08b5a360 build: Update known-good for 1.2.140 header
Changes:
- Updated `known_good.json`
- Propagated `loader_genvk.py` changes
- Generated new source files
- Modified `.gitattributes` to ensure generated source files should
always have LF line endings because that is how it will be generated on
all platforms going forward. Upstream change in Vulkan-Docs explicitly
generates code with LF line endings.
- Removed automatic CRLF to LF conversion git setting in `.appveyor.yml`

Change-Id: I1ca36b80dfabe83fa16e36116d1ad43c0a65ff78
2020-05-04 13:44:54 -06:00
Shannon McPherson e37796212e build: Update known-good for 1.2.137 header
Updated `known_good.json` and generated new source files

Change-Id: If8edd83ec20ef78e0067a43d5acbee80cfe00ead
2020-04-08 15:52:42 -06:00
Charles Giessen 7be32aa141 scripts: stubs in dispatch table lacked matching return types
Generated functions stubs had either a return type of void or
VkResult. Recent vulkan extensions had functions which returned
uint32_t, uint64_t, and VkDeviceAddress. The
dispatch_table_helper_generator didn't account for this and GCC would
complain about mismatching types. While likely not an issue, it did
create very noisy builds.

Modified files:
	loader/generated/vk_dispatch_table_helper.h
	scripts/dispatch_table_helper_generator.py

Change-Id: Iba229093461b75fd6ccd195cf60e200a22b8678f
2020-03-23 12:50:07 -06:00
Shannon McPherson 11b1c661b7 build: Update known-good for 1.2.135 header
Updated `CMakeLists.txt` and `common_codegen.py` to allow access to beta
types and commands when including `vulkan.h`. Generated new loader
header files.

Change-Id: I7241ff08cf9d70cd22472735f53d8f6d72fb8a46
2020-03-17 15:20:26 -06:00
Joshua Ashton 9ce8b29344 loader: Migrate get surface caps 2 funcs to wsi
This was not exported correctly unlike other wsi funcs

Fixes #342

Change-Id: I456e3c495a05da8ff3063d7de9d970c0e52d45c8
2020-03-16 10:51:29 -06:00
Shannon McPherson 8c35155871 build: Update known-good for 1.2.134 header
Change-Id: I01d0ff7ac2adcaca8630eb58755ebc8852c39c8d
2020-03-11 11:53:26 -06:00
Shannon McPherson 576a39cc85 build: Update known-good for 1.2.133 header
Change-Id: I2899494f9f76a914aee6b376e278d19e1b03e271
2020-02-17 14:49:43 -07:00
Lenny Komow 45463bf2b9 loader: Fix debug utils terminators being skipped
Change-Id: I9e08b59669bd301e3c5361ae4ea16102461fb34b
2020-02-03 03:19:32 -07:00
Shannon McPherson baabd39646 build: Update known-good for 1.2.132 header
Change-Id: I8607a9a279525391298eb2aceb0078faa8f32fce
2020-01-28 15:07:22 -07:00
Lenny Komow f5e61130b6 loader: Update comments for shared aliases
Change-Id: Ic21f144a99345d6ab78d019bfec852390e415fb7
2020-01-27 10:40:19 -07:00
Mark Lobodzinski 838ee685da loader: Improve 1.2 promoted extension fix
Change-Id: I33ea7c685c0d91119fed20b503408c7709210833
2020-01-22 14:02:48 -07:00
Mark Lobodzinski 8311e7c4d7 loader: Fix handling of promoted device extensions
Change-Id: Ia301f1bcde6f9fa7252ee4a665821b4a3d72d269
2020-01-22 13:42:56 -07:00
Mike Schuchardt 078a13b9b9 build: Header update for 1.2.131
Change-Id: I1adcfac93f39d869085e90f0fab69faccbfbe77d
2020-01-15 11:55:51 -07:00
Mike Schuchardt f40947e6f2 scripts: Tweak extension detection
Use tag type instead of feature name
2020-01-15 11:55:43 -07:00
Lenny Komow 897c94f266 scripts: Add support for Vulkan 1.2 codegen
Change-Id: I37985dae01a0d17d02d3ba8e8a290cb2d155239b
2020-01-15 11:55:33 -07:00
Lenny Komow 0ef7c87f76 loader: Add custom terminator to tool properties
Since vkGetPhysicalDeviceToolPropertiesEXT is implemented in the layers
and not drivers, this changes the terminator to never call into the
driver.

Change-Id: I3beb92ab5c327672f21a17b857068968099c2345
2019-12-12 16:51:36 -07:00
Lenny Komow d5956391bd codegen: Fix crash in tooling info terminator
Change-Id: I5835b73874bd3a8de9330c3244f456545c342ff3
2019-12-11 16:37:19 -07:00
Mark Lobodzinski d46c13c194 build: Update for 1.1.130 header version
Change-Id: Ie76beb6ec3eb24ca8a0d2d9c16646ca062e3278c
2019-12-10 14:48:13 -07:00
Shannon McPherson 46ab516563 build: Update known-good for 1.1.129 header
Change-Id: I4a16e33c467a266f84aa38cc699c1e26d44f5b7c
2019-11-26 13:05:09 -07:00
Shannon McPherson 2830d4e64b build: Update known-good for 1.1.128 header
Change-Id: I05a369dd1fa9db2a53884193c5740f105c62b197
2019-11-18 11:54:28 -07:00
Shannon McPherson 1552e276d9 build: Update known-good for 1.1.127 header
Change-Id: I4abc51b448f786b3633b6cfcba0c18f873bb684d
2019-11-04 10:48:06 -07:00
Shannon McPherson 9ec8df768a build: Update known-good for 126 header patch
An updated version of `vulkan.hpp` was added to the Vulkan-Headers
repository to address an issue discovered when building `cubepp` in the
Vulkan-Tools repository

Change-Id: I347ee871b596a1ba29e4190862c6b8e9aeb629f9
2019-10-28 11:29:17 -06:00
Shannon McPherson dc0754b91f build: Update known-good for 1.1.126 header
Change-Id: I176f2b46099c8636972b6d9c281397fe18b096ac
2019-10-21 15:08:13 -06:00
Shannon McPherson e6a4367c67 build: Update known-good for 1.1.125 header
Change-Id: I35d7d7f7b06e9163f276bacce1dc4109d3cee630
2019-10-16 10:11:49 -06:00
Shannon McPherson 0876c5b51a build: Update known-good for 1.1.124 header
Changes:
- Updated known good files
- Generated new files using `generate_source.py`

Updated:
- `loader/generated/vk_dispatch_table_helper.h`
- `loader/generated/vk_layer_dispatch_table.h`
- `loader/generated/vk_loader_extensions.c`
- `scripts/known_good.json`

Change-Id: I60f219b3fb252667250f2392b0196ba458dbdca8
2019-10-07 10:17:08 -06:00
Lenny Komow 9c5dad498e loader: Add support for metal surfaces
The adds support for the VK_EXT_metal_surface extension

Change-Id: Ibb1c21e19fb053fe332ea075c3d32de59f7f8881
2019-09-18 18:01:52 -06:00
Lenny Komow 36d05be80b repo: Bump known good for metal surface support
Change-Id: Ia5d934f8ed5039cbe354b4d9f56c604a82a2287f
2019-09-18 18:01:52 -06:00
Shannon McPherson 7a3b5ebebc build: Update known-good for 1.1.123 header
Change-Id: Iff55cf1499d7640a22e58cdf9553e74be8d52e00
2019-09-17 10:58:27 -06:00
Shannon McPherson 5ec648e562 build: Update known-good for 1.1.121 header
Change-Id: I227c133c69f5befb978b73ba9b5530a8ce2b1055
2019-08-26 15:50:58 -06:00
Shannon McPherson 08945d1731 build: Update known-good for 1.1.120 header
Change-Id: I964c1f61e92d6a83676dc402448258927d1c1369
2019-08-20 10:05:18 -06:00
Shannon McPherson 7c5e88d589 build: Update known-good for 1.1.119 header
Additionally, ran `generate_source.py`.

Change-Id: I1bae96567289b92e25c03c5c9119ecc1e972fe56
2019-08-13 09:21:07 -06:00
Shannon McPherson 389b707cd9 scripts: Update known-good for 1.1.117 header
Change-Id: I7c2744f60247ce7190e4c16129c9c6b1ebd2ad80
2019-07-31 13:53:52 -06:00
Mike Schuchardt 5e50026d7e scripts: Remove bogus helper file generator opts 2019-07-19 10:36:03 -07:00
Mike Schuchardt 1d9aa51c78 scripts: Port master codegen script from VVL 2019-07-19 10:36:03 -07:00
Shannon McPherson eca331ccba build: Update known-good for 1.1.115 header
Change-Id: I84ba49eed31acddd66cf6719dbbbe562325d95a9
2019-07-15 14:30:41 -06:00
Shannon McPherson 882de88b7b build: Update known-good for 1.1.114 header
Change-Id: Iea7cb6e58a2fbe48c5aa1d881dd9c528db23b6ce
2019-07-08 09:22:35 -06:00
Shannon McPherson 85613ccedf build: Update known-good for 1.1.113 header
Change-Id: Ifcb76dd1535211d8d12941e4a65bdf0ee286f5c5
2019-07-01 13:37:49 -06:00
Shannon McPherson ad7181e75e build: Update known-good for 1.1.112 header
Change-Id: I7db7e5d53dd9ac911dac360c65397ad15bc3b079
2019-06-25 10:04:58 -06:00
Shannon McPherson 183f9badca build: Update known-good for 1.1.108 header
Additionally, moved platform guards to surround
`GetPhysicalDeviceSurfacePresentModes2EXT`

Updated:
- `loader/extension_manual.c`
- `scripts/known_good.json`

Change-Id: I5c5eef6474915f8cb9aeaedcf95e84bb118badfb
2019-05-29 09:48:53 -06:00
Shannon McPherson 6f58a0c522 scripts: Correct uneven braces in ldr ext gen
Platform guards did not surround opening and closing curly braces in
`loader_extension_generator.py`

Change-Id: Ibc93b42988704e077c34bb11a1dfea79cbf59a19
2019-05-24 15:00:10 -06:00
Bob Ellison ca8054db4c update_deps: make --clean-repo switch work in all cases
--clean-repo right now will raise an exception if the repository
directory was not present.  This makes it work in all cases.
2019-05-15 14:40:27 -06:00
Mike Schuchardt 22e7249be5 scripts: Temporary workaround for python2
Temporarily patch abc module with ABC helper class until upstream
conventions.py script stops using it.
2019-05-13 07:49:06 -07:00
Lenny Komow cb0eb635c2 scripts: Remove unused codegen from build
There was some old codegen that was used for generating validation
layers when those were in the same repo as the loader. Since they're
separate, we can remove the files so they only exist in the layers
repo.

Change-Id: Ia72f235ea0617f25258631e1003123ec3edd88d4
2019-05-07 11:37:20 -06:00
Bryan Law-Smith d708e3ea4c loader: VK_EXT_headless_surface additions
As VK_EXT_headless_surface is a WSI extension, supporting it
requires changes to the loader. This commit makes the necessary
changes, which are mostly straightforward plumbing.

However, this commit also includes a minor tweak to avoid a
segmentation fault when an implicitly enabled layer provides
support for an instance extension.
2019-04-26 15:23:45 -06:00
Lenny Komow c1157054b1 repo: Bump known good to 1.1.107 header
Change-Id: I7b98293da8a326191cd7787936f373109d60e640
2019-04-26 15:21:23 -06:00