Commit Graph

13 Commits

Author SHA1 Message Date
Charles Giessen
d8af0ae227 Refactor vk_loader_platform.h
Move includes of vulkan headers into loader_common.h, delete dead code
and unnecessary macro defines, and generally clean up the header.
2022-07-07 14:41:01 -06:00
Charles Giessen
4799c294d6 loader: Header include cleanup
Separated headers into common groups, with system headers being first, then
Vulkan API headers, followed by loader headers.

Then alphabetized headers in each group. Due to moving _GNU_SOURCE to being set
by cmake, there isn't any implicit dependency between the include order used.

Made sure headers should be able to be included independently, such as
including the vulkan headers where appropriate.
2021-09-09 11:28:56 -06:00
Lenny Komow
48217d361d loader: Fix unknown device trampolines on Windows
Change-Id: I33129c1d80d7c1d1615b7b86a7abfae1c33d0204
2017-07-05 15:02:04 -06:00
Lenny Komow
7e669d97b6 loader: Fix unknown device trampolines on Linux
Change-Id: I69d12159534a4569dd2335b4fc52e9ba0bc004b0
2017-07-05 15:02:04 -06:00
Mark Lobodzinski
e2859eb393 repo: Clang-format LVL source files using Google
Switch clang-format standard from the LLVM style to the
Google style for more consistency.

Change-Id: I247c4abc275d7873a91522e1e234198adaa24033
2017-01-26 15:45:51 -07:00
Mark Lobodzinski
1a6065da5d loader: Protect loader macro lists from clang-format
Change-Id: I3e943a538d33737453a3e71edebbd026a1c7f6f3
2017-01-26 13:07:08 -07:00
Mark Young
274e4bcf33 loader: Update the loader to 1.0.39
Add new extensions for 1.0.39.  Also, updated layers to include
minimal set of functionality for 1.0.39 extensions. Extensions include:
 - VK_KHR_get_physical_device_properties2
 - VK_KHR_shader_draw_parameters
 - VK_EXT_direct_mode_display
 - VK_EXT_display_surface_counter
 - VK_EXT_display_control

Also, redo the LoaderAndLayerIf document.

Change-Id: I10412086da7a798afe832a3892e18f606259b5af
2017-01-24 14:07:22 -07:00
Frank Henigman
6e725583f3 loader: guard gcc feature appropriately
Macro __GNUC__ should be used to guard gcc-specific code.
Also exclude clang because though it defines __GNUC__ it
doesn't accept this particular gcc feature.

Change-Id: I703289cad58e7675f4c4ca5e7635fc8fb35ae77e
2016-12-22 13:16:11 -07:00
Mark Young
dd904ae1f0 loader: Rename DevExt to dev_ext
Make a quick change to conform a structure element to the coding
standard.

Change-Id: Icbf168b1ab451dcc4847a0c2c17d0cb40c0197b8
2016-09-02 13:52:11 -06:00
Jon Ashburn
4f80d6749d misc: Update licenses to Apache 2.0
Change-Id: Id447f4c8c53d33f9192940bdd3ae727b7b738a97
2016-04-19 12:11:25 -06:00
Karl Schultz
87e1cfe8c9 Remove Khronos confidential clause from license text. 2016-02-10 13:24:39 -07:00
Jon Ashburn
1c75aec41d loader:Update copyright and apply clang-format (no logic changes) 2016-02-03 09:00:31 -07:00
Jon Ashburn
6cb69f40c2 loader: Add dynamic dispatch for unknown device extension entrypoints
GetInstancePorcAddr() is specified to return trampoline entrypoints for all
Vulkan core and extension entrypoints that are dispatched on an instance object
or a child of that instance object. However, typically, device extensions would
be unknown to the loader (don't want to rev the loader everytime an IHV creates
a new device extension).

This patch allows loader to dynamically discover device extension entrypoints
and configure generic trampoline code for these discovered device extensions.
2015-11-18 17:05:38 -07:00