-
a0099c50
by Charles Giessen
at 2020-01-13T13:54:40-07:00
loader: Remove loader_platform_basename dead code
The loader_platform_basename function is not being used anywhere
else and was last modified 4 years ago. Considering the amount of
TODO comments and mentions to replace this, there doesn't seem
like a pressing need to keep it.
Changes to be committed:
modified: loader/vk_loader_platform.h
Change-Id: Icd7a4d1104889e0519081831fbfaaaa46690438c
-
cc2ac861
by Lenny Komow
at 2020-01-15T11:55:24-07:00
loader: Add support for Vulkan 1.2
Change-Id: Iad8d930ad6ff9eb9493fa3e72178f0d00698b09d
-
a5cc1d3a
by Lenny Komow
at 2020-01-15T11:55:33-07:00
scripts: Add support for Vulkan 1.2 codegen
Change-Id: I37985dae01a0d17d02d3ba8e8a290cb2d155239b
-
0b9462b7
by Mike Schuchardt
at 2020-01-15T11:55:43-07:00
scripts: Tweak extension detection
Use tag type instead of feature name
-
20f2d901
by Mike Schuchardt
at 2020-01-15T11:55:51-07:00
build: Header update for 1.2.131
Change-Id: I1adcfac93f39d869085e90f0fab69faccbfbe77d
-
af8c7e04
by Mike Schuchardt
at 2020-01-16T08:47:32-08:00
Fix GN build
Vulkan-Headers uses a new build_override include to toggle x11 support
-
0277a2ca
by Mark Lobodzinski
at 2020-01-22T13:42:56-07:00
loader: Fix handling of promoted device extensions
Change-Id: Ia301f1bcde6f9fa7252ee4a665821b4a3d72d269
-
37d3a235
by Mark Lobodzinski
at 2020-01-22T14:02:48-07:00
loader: Improve 1.2 promoted extension fix
Change-Id: I33ea7c685c0d91119fed20b503408c7709210833
-
310fb861
by Shannon McPherson
at 2020-01-24T15:32:36-07:00
loader: Update copyright date to include 2020
`loader.rc` copyright date was updated
Change-Id: Id520e571bb0fa3705f945deb8eeca1eda29011a1
-
2dc43a9e
by Lenny Komow
at 2020-01-27T10:40:19-07:00
loader: Update comments for shared aliases
Change-Id: Ic21f144a99345d6ab78d019bfec852390e415fb7
-
44ac9b2f
by Charles Giessen
at 2020-01-27T17:44:44-07:00
Fix spelling mistakes
Several comments and one error message contained spelling mistakes.
This commit fixes it.
Changes to be committed:
modified: loader/loader.c
modified: loader/vk_loader_platform.h
Change-Id: Ida86de154b1c1e80c1d251ce71246a06ab038e2d
-
fb94ccdd
by Shannon McPherson
at 2020-01-28T15:07:22-07:00
build: Update known-good for 1.2.132 header
Change-Id: I8607a9a279525391298eb2aceb0078faa8f32fce
-
a4f41ae8
by Lenny Komow
at 2020-02-03T03:19:32-07:00
loader: Fix debug utils terminators being skipped
Change-Id: I9e08b59669bd301e3c5361ae4ea16102461fb34b
-
807f1465
by Lenny Komow
at 2020-02-03T03:19:32-07:00
build: Regenerate files for debug utils changes
Change-Id: Ia59f3c34addca92cfa22f4396ea30deb445a1ffc
-
02e2744e
by Charles Giessen
at 2020-02-04T14:34:26-07:00
loader: Warn when loader_secure_getenv() fails
Whenever a call to loader_secure_getenv() fails and returns a
NULL, the loader will now issue a warning that the environment
variable requested will be ignored.
Change-Id: I2ebdfad2f842cf3dda69a359da31124e6f1eabc2
-
e8d7d881
by Charles Giessen
at 2020-02-04T14:36:08-07:00
loader: add null check to loaderValidateLayers
The loader will now make sure to check if utf8 is null before
validating the string, preventing needless segfaults.
Change-Id: I48139e56719e3c518b85f2ded1ca0b682447413f
-
b932cf53
by Lenny Komow
at 2020-02-04T16:14:05-07:00
loader: Add core 1.2 functions to gpa_helper
Change-Id: Ida875db5067265d67ddeae2843d5cf6a258c2693
-
c4bf245c
by Lenny Komow
at 2020-02-05T19:25:13+01:00
loader: Fix buffer size updates in registry search
This causes the loader to properly update buffer sizes when reading
Windows registries.
Change-Id: I5fa0d86757177c8acac45871862995e3bacfc732
-
d09e9171
by Charles Giessen
at 2020-02-05T13:26:56-07:00
loader: don't unconditionally add std-val meta layer
Previously, the standard-validation meta layer would always be added
to the list in loaderScanForLayers. This results in erroneous reporting
of its existance when querying for layers. This code is no longer
needed as the std-val meta layer is a proper layer which is included
in the sdk.
Changes to be committed:
modified: loader/loader.c
modified: loader/loader.h
modified: loader/trampoline.c
Change-Id: Ib8dacf82db95cd50b02cb51b1ae688d2873cbbee
-
491dcfb5
by Charles Giessen
at 2020-02-05T13:54:15-07:00
loader: secure_getenv change logging WARN to INFO
Validation Layer tests failed due to using LOADER_WARN_BIT, changing it to LOADER_INFO_BIT as
its more appropriate.
Change-Id: I3abf97796e1f1167f22538343bf22781d1125317
-
c731adec
by Cody Northrop
at 2020-02-06T08:09:35-07:00
loader: Avoid clang warning about parentheses
GN build was getting the following:
error: using the result of an assignment as a condition without
parentheses [-Werror,-Wparentheses]
Fixes #326
-
0bd30e43
by Shannon McPherson
at 2020-02-17T14:49:43-07:00
build: Update known-good for 1.2.133 header
Change-Id: I2899494f9f76a914aee6b376e278d19e1b03e271
-
dc33ddeb
by Georg Lehmann
at 2020-02-18T10:11:43-07:00
loader: correct the name of vkNegotiateLayerInterfaceVersion
There is no vkNegotiateLayerInterfaceVersion as far as I know.
The correct name is vkNegotiateLoaderLayerInterfaceVersion.
-
39e685cc
by Bas Nieuwenhuizen
at 2020-02-18T11:44:55-07:00
loader: Deal with failure loading implicit layer libraries.
If the error is not dealt with, we'll end up calling dlclose(NULL)
later.
-
c357af84
by Lenny Komow
at 2020-02-19T16:31:49-07:00
loader: Remove queue info count check
The loader isn't supposed to do error checking unless layers are unable
to do so. This is a check that belongs in the layers
Change-Id: I89428210138d147be1b8d5c548377adeabe34d64
-
39946dfd
by dan sinclair
at 2020-02-20T09:49:24-07:00
Allow Vulkan-Headers to be in externals.
This CL updates the CMake files to allow Vulkan-Headers to be in the
external folder. If the externals/Vulkan-Headers folder is present the
scripts will use that version of the headers.
-
c8a19065
by dan sinclair
at 2020-02-20T09:49:24-07:00
Move BUILD_TESTS option up as well
-
136207a6
by Mark Lobodzinski
at 2020-02-20T12:52:21-07:00
loader: Remove standard_val refs from LoaderLayerIF doc
Change-Id: I1f76bda5ff497def8522690367ee86d19a40e5e2
-
29adf277
by Shannon McPherson
at 2020-03-11T11:53:26-06:00
build: Update known-good for 1.2.134 header
Change-Id: I01d0ff7ac2adcaca8630eb58755ebc8852c39c8d
-
5c12449c
by Charles Giessen
at 2020-03-12T14:25:28-06:00
loader: fix crash when json doesn't contain an object
When `loaderAddLayerProperties` has a json that doesn't contain an object as
the topmost value, it segfaults when looking for the `file_format_version`.
This commit fixes it by making sure the json is of the correct type before
proceding.
Files modified:
loader/loader.c
Change-Id: I4a624e3627d5f35a1a37ec4a17b03a3926ba5907
-
f1d9f12a
by Charles Giessen
at 2020-03-12T14:25:28-06:00
loader: Fix skipping all layers if one bad is found
The logic for loaderScanForLayers would jump to out if any issue was found
loading any layer. This prevented any correct layers from being detected.
The other fix is in loader_get_json to return if the length is zero,
which would cause a VK_ERROR_OUT_OF_HOST_MEMORY to be thrown because
cJSON_Parse would fail.
Change-Id: Ie7a5de5d0f38edd9b9012b9cd22fecd9ed86eb5c
-
03cc64b5
by Joshua Ashton
at 2020-03-16T10:51:29-06:00
loader: Migrate get surface caps 2 funcs to wsi
This was not exported correctly unlike other wsi funcs
Fixes #342
Change-Id: I456e3c495a05da8ff3063d7de9d970c0e52d45c8
-
64c36933
by Joshua Ashton
at 2020-03-16T10:51:29-06:00
loader: Handle no surface for surface caps 2 funcs
Change-Id: I8b7b586bd7f3e15e5e0d41a325c1dd51dfd48427
-
63db609c
by Simon McVittie
at 2020-03-17T13:22:26-06:00
FindVulkanHeaders: Match header lines more precisely
In recent versions of Vulkan-Headers, we need to avoid matching the line
that defines VK_HEADER_VERSION_COMPLETE, because that would result in
thinking the micro version was 1 instead of the correct 134.
Change-Id: I9047e207c5a0bd4612908f16a9742c3cb1659348
Fixes: https://github.com/KhronosGroup/Vulkan-Loader/issues/352
Signed-off-by: Simon McVittie <smcv@collabora.com>
-
521d72b0
by Shannon McPherson
at 2020-03-17T15:20:26-06:00
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
-
4221edf9
by Mark Lobodzinski
at 2020-03-18T14:04:00-06:00
travis: Remove GN build failures from 'allowed' list
GN build failures will now cause the travis builds to fail.
Change-Id: I985e4b8da6c151fc5c18cd5a82e4d074fcfb838d
-
ff44f21a
by Charles Giessen
at 2020-03-18T14:04:13-06:00
loader: check for duplicates in device extension count
Previously, the logic to get the pProperyCount in
terminator_EnumerateDeviceExtensionProperties when pProperties is null did
not check for duplicates. This meant that the subsequent call to
vkEnumerateDeviceExtensionProperties could write fewer extensions out as
duplicates aren't allowed. This commit should make it so that two calls
to vkEnumerateDeviceExtensionProperties return the same pPropertyCount's
Change-Id: I5d5513673322c02ed78dff5bb85605334beb5c6c
-
acbf3160
by Charles Giessen
at 2020-03-23T12:50:07-06:00
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
-
cc481ef2
by Wang YanQing
at 2020-03-26T10:44:01-06:00
docs: Fix wrong type name in InterceptFunctionName prototype
The right type name of InterceptFunctionName's first argument
is VkEnumerateInstanceExtensionPropertiesChan instead of the
VkEnumerateInstanceExtensionProperties.
Signed-off-by: Wang YanQing <udknight@gmail.com>
-
055c28dd
by Mike Weiblen
at 2020-03-27T10:17:05-06:00
loader: Use complete version from header
Change-Id: I97b4f2aa42f24cea082ac574dfcedd853f02caf8
-
b0c27ce3
by Mike Weiblen
at 2020-03-27T10:17:05-06:00
tests: Use complete version from header
Change-Id: Ic194ff680af778d7221b60be14be20db57930244
-
ba07fa0b
by Charles Giessen
at 2020-03-30T13:45:14-06:00
loader: fix mispelling of implement
This somehow went under the radar for the spelling mistakes commit
previously.
Change-Id: I377e145d949b9e659dc89dc3bb912931eb9daca4
-
86429d9e
by Ricardo Garcia
at 2020-04-02T10:20:56-06:00
Allow vkGetInstanceProcAddr to resolve itself with no instance
Fixes #365