Android Hardware Buffers can be created with mip levels and
the mismatch is causing errors when importing vulkan images.
Bug: 406456167
Test: CtsNativeHardwareTestCases
Change-Id: I3634bd400574453bf4ff123c149cb5f95409a42f
Moves several of the "common/base" classes to host/backend as these
classes all used `Stream` which is a host only interface.
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 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: Ia664776c2322b310614f632e4926bb3b031f3bc1
... 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
.. to increase readability and reduce duplicated
functionality around the code base.
Bug: 389637419
Test: CI
Change-Id: Ib838b166a7629f00375cad6beb0a1630d2041986
... so that members can start to be protected with GUARDED_BY
annotations and potentially can start to eliminate having a
global `sVkEmulation`.
Bug: b/383139165
Test: cvd create --gpu_mode=gfxstream_guest_angle_host_swiftshader
Change-Id: Iae4dd859991015e386fcc30ef091ccdb7ed1aeb6
This reverts commit 1cc4e5cfc8.
This is now a "revert^3". So finally removing this API/feature,
and all the associated code that was tracking this in queueSubmit.
As mentioned on chromium review, this was initially added by QNX for
zink+gfxstream-vulkan bring-up on Linux, but sync issues fixed in
Vulkan. This was never a robust API, and doesn't make sense in the
context of the virtio-gpu spec (i.e. for scanout resources).
Test:Linux + Android guests using gfxstream-vulkan-only configs
Change-Id: I9e25f797b27388f78c19b2fb6d979fd803bce60e
Revert submission 3414268-revert-3393388-extmem-refactor-dec-5-BQXYSDRQMH
Reason for revert: Fixing the MacOS issue that required the original revert of the recent changes.
Reverted changes: /q/submissionid:3414268-revert-3393388-extmem-refactor-dec-5-BQXYSDRQMH
Change-Id: I81fbb3263488f69aec16e5ffd9c6008d9ac670bf
- Use ExternalHandleInfo wherever possible
- Validity of the handle can be checked by making it a std::optional, this
is more robust
BUG=382442209
TEST=sanity on Android14, Yocto w/ gfxstream
NO_IFTTT=doesn't affect snapshot
Change-Id: I427dd554d9a2841685f5f45e3d97620bedb87b56
- Use ExternalMemoryHandle instead of VK_EXT_MEMORY_HANDLE, wherever
possible
- Make the dupExternalMemory internal to VkCommonOperations
- Make the Buffer and ColorBuffer getExtMem functions do the dup instead
- Resolve references and nomenclature for handleType/streamHandleType
BUG=382442209
TEST=Sanity on Android14 (ANGLE and gfxstream-gles backend), Yocto w/ gfxstream-vulkan
NO_IFTTT=doesn't affect snapshot
Change-Id: I9d56d058ed891ec036220aca90a54bd7a1dbaaa6
Also clean up references to headers/namespace for ManagedDescriptor type
BUG=382442209
TEST=compile
NO_IFTTT=doesn't affect snapshot
Change-Id: I7dc660f239e47974588b574b3ce676c482658bd7
Make readColorBufferToBytes calls safer by providing the size of
the destination buffer. Old unsafe version is kept with maximum
size value to allow backwards compatibility.
Bug: 378779335
Test: presubmit, run on Mac
Change-Id: Idcadecda7642bdb45be65c7f0908fd7925c152fa
We should try to support external sync, along with
external memory so:
find ./ -type f -exec sed -i -e 's/BlobManager/ExternalObjectManager/g' {} \;
find ./ -type f -exec sed -i -e 's/removeDescriptorInfo/removeBlobDescriptorInfo/g' {} \;
find ./ -type f -exec sed -i -e 's/addDescriptorInfo/addBlobDescriptorInfo/g' {} \;
find ./ -type f -exec sed -i -e 's/mDescriptorInfo/mBlobDescriptorInfo/g' {} \;
find ./ -type f -exec sed -i -e 's/ManagedDescriptorInfo/BlobDescriptorInfo/g' {} \;
BUG=350965057
TEST=compile
Change-Id: Id9fe5319ed617638ae8c67f9377f5426fe15cf44
We want to share the color buffer or buffer with a Wayland,
BUG=349122558
TEST=see dmabufs being exported
Change-Id: I5d3a94aec2b7a58b8281ba081d8041e21d12e8bf
Useful for syncing against a specific resource. This will only be
applicable to colorBuffer resources.
Add waitSync implementation for ColorBufferVk
BUG=343234676
TEST=gfxstream guest ANGLE + gfxstream guest Zink + end2endtests
Change-Id: I8268f3b3637984f3d4d1cd6127fdd542978790c0
We have a situation that the color buffer vulkan images are transformed
into the wrong layout after snapshot load. Fix it by memorizing the
layout in snapshot.
We don't have a test for it yet as we don't really understand how to
trigger this behavior at unittest level.
Also recover layout for multi-sample images after snapshot loads. But we
still don't snapshot its content yet.
Bug: 332775761
Test: CanSubmitQueue
Change-Id: I8007f504d055041b11c3af3425cfbdbfac0553dd
All Vulkan snapshot related functionality should be hidden behind
-feature VulkanSnapshots.
Bug: 332775761
Test: existing
Change-Id: Id0b0caefe619872f6f8a8144d3485a9c60f4f3fc
Should be able to snapshot Chrome home page without crashing. (Website
browsing still needs more work.)
Bug: 332775761
Test: CanSubmitQueue
Change-Id: If1dbd4fc2af17d022cdcdfca98528d7183e32ab6
Developed for QNX use-case, but applies generally to any
platform that supports external memory for import but not for
export.
Some robustness around VK_QNX_external_memory_screen_buffer API
usage added with the updateExternalMemoryInfo() function.
BUG=319510663
TEST=compile && launch_cvd --gpu_mode=gfxstream_guest_angle
Change-Id: I7b10b70da024df60881c8b27ea29bd44101b95f6