Remove printf usages. Also reduces the severity of error for unimplemented
displayvk::clear call.
Bug: 389637419
Test: CI
Change-Id: If3de85fc910d1c7e1e10a1292bf02d26be0b8801
.. to unify with other usages over the data and indicate the intent
better.
Bug: 389646068
Test: CI
Change-Id: I0d0c2f05020bbd86728abdbfebb5084b1112b657
Do not initialize emulationGl when vulkan composition is used and
handle usages of it by reporting errors to the logs with the function
name when possible, rather than doing a fatal crash.
Calls to createEmulatedEglFenceSync are still being made frequently
in GuestAngle mode, probably due to a separate bug, so the error
message is logged only once.
Also changes the return type of EmulatedEglImage::destroy to a regular
bool to limit usages of EGL structures.
Bug: 389646068
Test: -feature GuestAngle,VulkanNativeSwapchain,GuestUsesAngle
Change-Id: Ib9f7f1b98fe91aa2fcd47bd98f4494eb947d00b7
It can be used when GL emulation is not enabled and the Vulkan
device info is used to fill the related device information.
Bug: 389646068
Test: CI
Change-Id: I51abf3a1269461db1f20a4d9dc129243f0c9b8bb
It is also initialized in the virtio gpu path but some tests start
directly at the FrameBuffer level.
Bug: b/432499466
Test: atest --host gfxstream_framebuffer_tests
Change-Id: I66af53919859c46995bb6cbadad64689578e6889
Add new display operation callback to be able to set and get color
transform matrix, which can be used to change appearance of the
display for accessibility features.
Bug: 420586022
Test: Set color accessibility options in emulator
Test: adb shell settings put secure accessibility_display_inversion_enabled 1
Test: FrameBufferTest.SetMultiDisplayColorTransform
Change-Id: If972487785b0635bfc6ec126d950dec0cf1cd6fb
The notification listeners were registered on the m_framebuffer
object, not "this".
Bug: 426618809
Test: verify embedded emulator shows frame updates
Change-Id: Iddb1d4902ac33ef2f1b2905dbc62fbebf5b1c630
This was missed in ag/34178919. The `param` passed to
`createSubWindow()` is `this` which is a `FrameBuffer::Impl`.
Bug: b/426644045
Test: CI
Change-Id: I28700645f912508c08189884ac97a192ed7a1466
... to break up the circular header imports between the main host
server headers and the underlying GL/VK backend headers. This is
needed to support further imports to internal which is stricter
about header includes.
Additional android CI on ag/33941257
Bug: b/423634910
Test: android build
Test: bazel build
Test: cmake build
Test: meson build
Change-Id: I378640034bc665c07dec5edbd396074d79e94cd6
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
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
... as this is a part of the Renderer/RenderChannel interface
and that interface should be completely standalone.
Also deletes a bunch of other unused files from common/base.
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: I466d520f0ac4be0049a7ed858d74287aefeef825
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
... alongside the rest of the Gfxstream host 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: I5db79bd3f7f6e8d776a34696f0fde3b3ef66627e
When a guest process died, e.g., during adb reboot,
it's vk instance will be cleaned up automatically on
the host. However, this does not happen after loading
vulkan snapshot, as there is no context id information saved
for each vk instance.
This cl fixes that problem by remembering the context id
associated with each VkInstance, save them during
snapshot save and restore them during load.
Test: save snapshot, load, adb reboot, save and load again
it should not crash during loading.
Bug: 413670220
Change-Id: I0cc7db41efc61d596ba64903cada27d9cb6348f3
Consolidates the second copy of opengl headers into common/opengl
and fixes some targets which were transitively relying on headers
via gl-host-common.
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: Id6a651b746bb36da04650f62dc8c0ae7e01989cb
and split type declarations off into render-utils as this is a
part of the RenderLib interface.
Updates FrameBuffer_unittest to use Mock'ed ops and moves
FrameBuffer_unittest next to FrameBuffer.
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: I2668585a0a2a8a37daaa7da97208fba250e00859
and split type declarations off into render-utils as this is a
part of the RenderLib 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 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: Ief42a5decdb946b4943388bd40c24bd6ca3a4cba
and split type declarations off into render-utils as this is a
part of the RenderLib interface.
Note: Makes hostmem register/unregister a no-op. These functions connect
to `HostmemIdMapping`. `HostmemIdMapping` has been effectively replaced by
`ExternalObjectManager` (originally `BlobManager`) starting in aosp/2571451
(and that change description even calls out `HostmemIdMapping` should no
longer be needed).
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: Iee4d0dca2143377b266972d2d38ec727a90c3deb
VkDecoder's seqno logic may get stuck if a guest process dies and
some vk commands don't make it over to the host.
Bug: 410069267
Test: CtsGraphicsTestCases
Change-Id: Ibcf3996ca6a681e1f734c943281b112506bab7ad
... 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
Segmentation fault here:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79cd693 in getGraphicsAgents () at /home/lenovo/aemu/host-common/GraphicsAgentFactory.cpp:36
36 *(uint32_t*)(1234) = 5;
(gdb) bt
0 0x00007ffff79cd693 in getGraphicsAgents () at /home/lenovo/aemu/host-common/GraphicsAgentFactory.cpp:36
1 0x00007ffff744a5c4 in stream_renderer_opengles_init (display_width=1280, display_height=1024, renderer_flags=-2147483551, features=...)
BUG=317816825
TEST=CI
Change-Id: Id3fc9ffac1f9a776ff38847d9963350d5cee6409
FeautreSet is a large structure with lots of strings, better
to not copy around unnecessarily.
Bug: N/A
Test: build
Change-Id: I604b4ad7af01f222b54dcda4cd2299e350324f50
.. from the FrameBffer, it can be retrieved and used from
the emulation objects.
Bug: N/A
Test: build
Change-Id: I4f78d2794868de796a6cee69d656a702d11588d6
This reverts commit fea93ca3a1.
Reason for revert: DroidMonitor: Potential culprit for http://b/402953416 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Change-Id: I9b2dbeb5dc6588f0f2f056e7e5070d27ecf42605
... 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
Helps identify source of the problems better. Also reduce severity
on invalidation calls, which might be called after the color buffer
is removed.
Bug: 392777654
Test: run foldable AVD, check error logs
Change-Id: I3bf34673fbeae476ee72edaeb4120f552b033cbd
entirely
These are replaced by stream_renderer_import_resource with STREAM_RENDERER_IMPORT_FLAG_RESOURCE_EXISTS
BUG=382442209
Change-Id: I8ada6ef5f857f1ffddf3835a12b51ee682e16f89