Only use launcher directory when the icd file cannot be found under
the program directory. Avoids 'Failed to open JSON file' errors
thrown from the loader.
Bug: 390345102
Test: run with VVL and VK_LOADER_DEBUG
Change-Id: I72e9832ff95f0e0037a5a1328a89f327965bf249
and add Android support which uses __android_log_print to
the default callback. This will allow us to eventually build
and run the guest libs in a standalone bazel environment without
Android libs (no "liblog", "libcutils", etc).
Misc notes:
* Updates some cases of ANDROID vs __ANDROID__. The former is
set when building with Soong (either host or guest) while the
latter is set specifically when targeting the Android platform.
Some places that were using ANDROID needed to be fixed to use
__ANDROID__ to properly detect when to use ANativeWindow.
* Updates the EGL platform header to address something similar
to the above where we may want to use X11 display when building
host binaries with Soong where ANDROID may still be defined.
Bug: b/416342919
Test: cd hardware/google/gfxstream
bazel build ...
bazel test ...
Test: cd hardware/google/gfxstream
mma
Test: cd hardware/google/gfxstream
mkdir build && cd build
cmake .. -G Ninja
ninja
Test: meson setup \
-Ddefault_library=static \
-Dgfxstream-build=host \
build
meson compile -C build
Test: cd <emu main dev repo>
cd external/qemu
python android/build/python/cmake.py --gfxstream
Test: cd <emu main next repo>
prebuilts/bazel/linux-x86_64/bazel test \
--platforms=@//build/bazel/platforms:linux_x64 \
@gfxstream//...
Change-Id: I4db669047f3900392d50509c470ea350d94a64ba
NO_IFTTT=existing field covered with type change
Bug: b/403363880
Test: cd hardware/google/gfxstream
mma
Test: cd hardware/google/gfxstream
mkdir build && cd build
cmake .. -G Ninja
ninja
Test: meson setup \
-Ddefault_library=static \
-Dgfxstream-build=host \
build
meson compile -C build
Test: cd <emu master dev repo>
cd external/qemu
python android/build/python/cmake.py --gfxstream
Test: cd <emu main next repo>
prebuilts/bazel/linux-x86_64/bazel test \
--platforms=@//build/bazel/platforms:linux_x64 \
@gfxstream//...
Change-Id: I6bfb2c4ef8368799d9f99f6293d9762b7dcb4c7f
... to continue working on breaking up dependencies on
hardware/google/aemu to support a standalone build.
NO_IFTTT=renderer not snapshot/restored in context
Bug: b/403363880
Test: cvd create --gpu_mode=gfxstream
Test: cvd create --gpu_mode=gfxstream_guest_angle
Change-Id: I6378c0c1139a12f9f3ab8cede6274cf9bda85bc0
... to eventually replace the existing host-common/logging. This
is needed to break up the circular dependency between aemu-base and
aemu-host-common, so that we can move parts of aemu-base and
aemu-host-common into hardware/google/gfxstream, in order to make
Gfxstream a self contained library for building.
Hooks up the existing host-common/logging via the
RenderLibImpl::setLogger() call.
Bug: b/403363880
Test: cd hardware/google/gfxstream
mma
Test: cd hardware/google/gfxstream
mkdir build && cd build
cmake .. -G Ninja
ninja
Test: meson setup \
-Ddefault_library=static \
-Dgfxstream-build=host \
build
meson compile -C build
Test: cd <emu master dev repo>
cd external/qemu
python android/build/python/cmake.py --gfxstream
Test: cd <emu main next repo>
prebuilts/bazel/linux-x86_64/bazel test \
--platforms=@//build/bazel/platforms:linux_x64 \
@gfxstream//...
Change-Id: Id52c6f756f85d0a5fb948601228234d7a84a14c2
Revert submission 3437479-VK_DRIVER_FILES1
Reason for revert: 388822941
(This topic also depends on 3438446 for relanding)
Reverted changes: /q/submissionid:3437479-VK_DRIVER_FILES1
Change-Id: I91051e71a5de5814511bee827f73fa67d4770f9c
VK_ICD_FILENAMES is deprecated, and the ICD selection
can be overridden by the user incorrectly if the new
parameter is set.
Bug: 370523649
Test: rebuild&run, CI
Change-Id: I8182fb0e588781c99514670351ed25cb2662930b
Use the new external memory extension for the management of
external images and buffers. Previous extension and usage was
depending on some workarounds on managing metal objects which
was causing issues with the usage of VVL.
Requires a new version of MoltenVK prebuilts/binaries.
Bug: 349066492
Bug: 368409646
Bug: 351765838
Test: -gpu host -feature GuestAngle
Change-Id: I47f0f13bde9d7e3dc95da1af3673deac649745d7
Avoid regression on MoltenVK by disabling the usage
of metal argument buffers.
Bug: 364055067
Test: rebuild and run with latest MoltenVK
Change-Id: I591db0ff428d6ea1a8625309bd6949077cfe60be
Adjusting the logging messages given when the loader library cannot be
found to be more information only and use common logging functionalities.
Bug: 350022582
Test: build and run emulator
Change-Id: Ib5655a3f3f8c99bb73f9780c6c2b6e7fcee0f425
VVL, when enabled implicitly, can cause errors due to the
current handling of external memory in the emulator. This
will be fixed after some spec or MoltenVK side changes.
It can be enabled with VK_LOADER_LAYERS_ALLOW=VK_LAYER_KHRONOS_validation
Bug: 351765838
Test: run with vkconfig using -gpu host -guest-angle on MacOS
Change-Id: I68c2c4ed9f398a00499997c7871365a6ccb5255c
These APIs and the related extension are deprecated in favor of the new
metal_objects extension to make sure the loader can intercept them, so that the layers, such as VVL, would work fine.
Removes necessity to load functions directly from a separate dylib.
VK_MVK_moltenvk extension support is still passed to the guest side
due to the existing checks for enabling the AHB extension.
Bug: 333460957
Test: run with swiftshader, host and use-host-vulkan arguments on MacOS
Change-Id: I17ce958bc6498029ad4c525e80764060f88df118
Enforce single queue family when using MoltenVK to satisfy
some ANGLE expectations when using -guest-angle option
and avoid crashes at the startup.
Bug: 333460957
Test: run with -guest-angle and host vulkan on Mac
Change-Id: I92075b855a0a8f10e604a87e3ebd3b4ef35d20da
... and add script to build a version of the Vulkan Loader which
uses "GFXSTREAM" prefixed env vars and logging.
Bug: b/315317383
Test: deqp-vk w/ Gfxstream ICD
Change-Id: I7202379dbc27a9519b55434e889139810078020d
... to try to simplify the number of functions reading the same
envvars.
Bug: b/315317383
Test: cvd start --gpu_mode=gfxstream
Change-Id: I58ae665573f494c97196d75749fa66777c7b7cf5