Commit Graph

42 Commits

Author SHA1 Message Date
ZhangLiang
b79002b26b libvulkan Open Pac
Signed-off-by: ZhangLiang <zhangliang335@h-partners.com>
Change-Id: If09239ad20b01b3af4110240935eeddbf45eee3d
2024-08-30 06:52:40 +00:00
openharmony_ci
639eeb0179
!48 Rename the part name
Merge pull request !48 from ZhangLiang/renamePartName
2024-07-18 10:09:51 +00:00
ZhangLiang
9bc28c386c rename the part name
Signed-off-by: ZhangLiang <zhangliang335@h-partners.com>
Change-Id: Id9cc080c145bcf5b3970e4513aec20432f0fda1e
2024-07-17 06:39:32 +00:00
ZhangLiang
b28409936e user mode insert layer
Signed-off-by: ZhangLiang <zhangliang335@h-partners.com>
2024-07-02 06:17:06 +00:00
andrew0229
0281b281d0 update to v1.3.275
Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: Ifc4224db2c6ea7c159d3cabe8f075475d47a41a8
2024-05-21 08:09:09 +00:00
andrew0229
b704218cf0 1.add new floder for swapchian layer;2.disable dlcolse;3.enable env
Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: I378fac2b692ad8520d525288c0a8a60ada6e5c0f
2024-04-18 13:00:32 +00:00
shegangbin
540d95be2b fix deps 0319
Signed-off-by: shegangbin <shegangbin1@huawei.com>
2024-03-19 10:03:25 +08:00
shegangbin
a94fd71013 fix deps
Signed-off-by: shegangbin <shegangbin1@huawei.com>
2024-03-14 17:12:24 +08:00
openharmony_ci
c1eb499560
!32 移除libvulkan.so中的main函数
Merge pull request !32 from Andrew0229/master
2024-03-11 11:10:34 +00:00
andrew0229
f6564276e8 remove main func in libvulkan.so
Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: I4a7becc121c9a5050a10c5458f726b6c427449b6
2024-03-08 09:08:53 +00:00
zhongning5
7ff8979bdd add innerapi_tags
Signed-off-by: zhongning5 <zhongning5@huawei.com>
2024-03-07 14:20:49 +08:00
shegangbin
4a64cbc9d8 loader component
Signed-off-by: shegangbin <shegangbin1@huawei.com>
2024-02-06 13:03:14 +08:00
Yuly Novikov
c8399c9130 Fix BUILD.gn
Add newly added file stack_allocation.h

Fixes #846
2022-06-30 12:24:44 -06:00
Peng Huang
0d76dd23b7 Update BUILD.gn
Add  LOADER_ENABLE_LINUX_SORT to workaround ANGLE crashes on Linux
2022-03-24 10:13:04 -06:00
Charles Giessen
2ded39d6f8 Remove hasing of unknown functions
Use a simple linear search instead. This greatly simplifies the logic and
reduces the places for the logic to go awry.
2022-03-14 23:31:26 -06:00
Jamie Madill
a0c7be0505 Use no-chromium-code in GN build.
Aligns the configs so that new warnings turned on in Chromium
Clang don't show up in the loader project.

Fixes #878
2022-03-14 13:45:57 -06:00
Charles Giessen
578e4771f8 Replace loader_cmake_config.h with definitions
Use CMakes built in ability to define compiler definitions to targets so that
the loader_cmake_config.h file is made redundant. This simplifies the build
process by removing the configure_file and including it. Note that this
commit is a part of a series of commits and not intended to work by itself.
2022-03-09 15:06:30 -07:00
Alexis Hetu
ef193f2f56 Add support for building on ChromeOS 2022-01-25 09:59:13 -07:00
Mark Young
cbe28ac790 Consistent loader device ordering
The loader ICD ordering could be random on Linux based on using readdir
to find ICD manifest files.  This can result in random behaviors as
applications that select only the first device can switch which device is
used.  To resolve this, we now sort based on device type and then
internally to the types based on PCI bus information.

This also introduces a VK_LOADER_DEFAULT_DEVICE environment variable
that can be used to force a specific PCI device.  This environment variable
is actually a duplicate of the MESA_VK_DEVICE_SELECT variable, which is
also looked for if the loader environment variable is not found.

Note, that at least one ICD must support it for the extension to be used at all.
So we only do the sorting if one ICD supports it.

Fixes part of #657
2022-01-12 16:53:35 -07:00
Jamie Madill
4c84b8223c loader: Add loader.rc to Windows GN build
This omission was causing the build dll to be missing version info.
2021-09-13 09:37:03 -06:00
Charles Giessen
310ba146e8 loader: Move simple terminators to terminator.c
Keeps the complex terminators in loader.c for the time being.
2021-09-09 11:28:56 -06:00
Charles Giessen
62957141f2 gn: Fix gn build for refactor changes 2021-09-09 11:28:56 -06:00
Jamie Madill
9d05cd96cf build: Disable -Wimplicit-fallthrough in GN.
This flag was recently enabled by default in Chrome and ANGLE
and other projects inherit these build settings. Explicitly
dsiable this warning until it is enabled in the non-GN build.

Change-Id: I8f353f8abc3f7857481ff9cc774aff3618eaf35a
2021-07-20 11:42:47 -06:00
Jamie Madill
9fb591feb7 GN: Support custom library name.
This allows for projects like ANGLE that build the loader to prevent
conflicts with the system.
2021-06-03 10:34:09 -06:00
Mike Schuchardt
eb6d6f95df build: Update to header 1.2.176
- Update known-good
- Generate source
- Fix version parsing in FindVulkanHeaders.cmake
- Add to VK_ENABLE_BETA_EXTENSIONS to GN build to pick up beta
  VkObjectType values

Change-Id: Ied4e4e71017e48d344b1c9cacf037ae989aceec9
2021-04-20 09:45:05 -07:00
Shahbaz Youssefi
be6ccb9eca Reland "Generate libvulkan.so.1 on Linux instead of libvulkan.so"
Chromium now uses VK_KHR_xcb_surface instead of VK_KHR_xlib_surface, so
it's able to use the gn build of Vulkan-Loader.
2020-11-13 11:11:08 -08:00
Shahbaz Youssefi
07bbf14a83 Revert "Generate libvulkan.so.1 on Linux instead of libvulkan.so"
Causes Chromium to pick up ANGLE's build of Vulkan-Loader instead of the
system one, with the caveat that the gn build of Vulkan-Loader doesn't
support VK_KHR_xlib_surface which Chromium depends on.

This change can be re-introduced once Chromium switches to
VK_KHR_xcb_surface.

This reverts commit 8308d6744d.
2020-10-30 11:47:06 -06:00
Shahbaz Youssefi
8308d6744d Generate libvulkan.so.1 on Linux instead of libvulkan.so
This is the Linux way.  Previously, a copy step was added to copy
libvulkan.so to libvulkan.so.1.  However, that only runs if everything
is built and not when a specific target is built.

There is no need for libvulkan.so on Linux, so this change makes the
libvulkan target directly generate libvulkan.so.1 and removes the copy
step.
2020-10-28 09:44:21 -06:00
Craig Stout
f8a8762459 Add Fuchsia support
Fuchsia (fuchsia.dev) builds with GN and uses a loader service to load
the ICD into the application's address space.

ANGLE builds have been verified.
Reemoves unused variable is_icd.
2020-10-19 10:12:32 -06:00
Jamie Madill
4c821f0a36 GN: Add missing header dependencies.
These headers were detected as missing by an ANGLE tool. Adding them
should fix some edge cases with incremental builds.
2020-08-27 10:05:11 -06:00
Cody Northrop
30b3f38578 loader: Fixes for gn build 2020-08-17 17:54:04 -06:00
Sylvain Defresne
f43832a319 Convert GN libs lists to frameworks
GN recently added support for Apple frameworks to link, rather than
overloading the libs lists. This pulls .frameworks out of the libs
lists, so that GN can stop supporting .frameworks in libs in the
future.

Bug: chromium:1052560
2020-07-06 11:51:17 -06:00
Corentin Wallez
50eaecd721 BUILD.gn: Generate libvulkan.so.1 on Linux
On Linux the standard name to use the Vulkan loader is libvulkan.so.1,
so we add a copy step to the GN build that copies libvulkan.so to
libvulkan.so.1.

Also ran `gn format` on BUILD.gn
2020-04-16 15:14:40 -07:00
Tobin Ehlis
2d6f74c6d4 build:Add def file for Windows GN build
Add vulkan-1.def as a source file for windows GN build and rename
windows target to "vulkan-1" so that functions are correclty
exported for GetProcAddress() lookup.

Fixes #292
2019-11-27 13:20:13 -07:00
Mike Schuchardt
fc962d0807 build: Add Cfgmgr32.lib to GN build
Appears to be needed for registry queries
2019-11-25 09:35:55 -07:00
Jonah Ryan-Davis
79e03670c2 loader: Use unsafe file search for GN builds
ANGLE is failing to locate validation layers on some platforms because
it cannot access VK_ICD_FILENAMES and VK_LAYER_PATH. This ensures that
these variables will always be picked up.
2019-11-20 09:21:17 -07:00
Jonah Ryan-Davis
d24b204e0f Fix build errors on Windows GN
DXGI was changed to load dynamically. These changes need
to be propagated to GN.
2019-11-06 14:55:52 -08:00
Mike Schuchardt
6b804caab5 gn: Remove stray comma in BUILD.gn 2019-10-30 09:13:07 -07:00
Jonah Ryan-Davis
5e2bb80c2c build: BUILD.gn fix for MacOS
MacOS was missing some defines in BUILD.gn. This ensures the same
behavior from BUILD.gn as CMakeLists.txt
2019-10-30 08:41:45 -07:00
Jamie Madill
e3a59741fa Remove extra defines from GN build.
No longer needed with updated ANGLE/Chromium integration.

See http://anglebug.com/3320 for more context.
2019-09-02 08:17:10 -07:00
Mike Schuchardt
84a2db9615 build: GN use pre-generated source 2019-07-19 10:36:03 -07:00
Mike Schuchardt
b2ec71bd79 build: Add GN build
Add support for GN, Google's meta-build system for Ninja:
https://gn.googlesource.com/gn/

Pull BUILD.gn and script dependencies from
https://chromium.googlesource.com/angle/angle

Add build_overrides for this project to enable both standalone and
component builds using GN

Add GN configuration to Travis CI
2019-05-13 07:49:06 -07:00