10 Commits
Author SHA1 Message Date
Serdar Kocdemir 32b99c2f08 Some logging cleanup
Remove printf usages. Also reduces the severity of error for unimplemented
displayvk::clear call.

Bug: 389637419
Test: CI
Change-Id: If3de85fc910d1c7e1e10a1292bf02d26be0b8801
2025-09-16 16:06:52 +00:00
Serdar Kocdemir 4e4d7b621f Move screenshot function to PostWorker from PostWorkerGl
Implementation does not directly depend on GL and should work
fine for PostWorkekVk as well.

Bug: 389646068
Test: take screenshot
Change-Id: Icaaa59a76fbdf717ceb8e9a911cae6e4d67e901f
2025-09-04 19:31:59 +00:00
Jason Macnak c2b159afd1 Move logging to common
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
2025-05-14 16:51:19 -07:00
Jason Macnak 2da8e932f1 Fixup more licensing finding
Bug: b/403363880
Test: n/a
Change-Id: I65a0ca10f4867bd81c02a613b00c7fde7deeeb6a
2025-05-09 10:22:46 -07:00
Jason Macnak b001c743d3 Update non interface parts of Gfxstream to use new base lib
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
2025-05-01 16:29:17 +00:00
Jason Macnak a43dfa9f3c Add gfxstream host logging lib
... 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
2025-04-09 13:11:08 -07:00
Aaron Ruby 71bd0142d0 Fix compilation warnings in all host code
Uncovered with QNX toolchain

Test: QNX and Linux compilation

Change-Id: Iafb692351c8315db80251ccf616fd792e3a1a43f
2025-03-03 08:45:53 -08:00
Serdar Kocdemir 3d6cf83caa Replace stderr logging with appropriate logger routines
Usages of fprintf(stderr,..) causes various issues when dealing with
bugs. Replacing them with appropriate versions to ensure they are
collected with any extra information needed and to avoid AS thinking
there were a crash.

Bug: 374311144
Test: build and presubmit
Change-Id: I6893a8df753ddfcc27f28dfd2bd828e53f3f32b3
2024-10-25 08:36:03 +00:00
Greg Schlomoff 3c2b813efe Moving isAstc() / isEtc2() to VkFormatUtils.h and cleaning up unused functions
Cherry pick from https://play-internal-review.git.corp.google.com/c/battlestar/aosp/device/generic/vulkan-cereal/+/92368
Test: Fixes ATSC decoding for 3DMark
Bug: 283152809

Change-Id: Ia61a3fc785ec54d90dc27cb3341a7a31aa3f9aea
2023-06-01 19:24:07 +00:00
Jason Macnak 648a9edc06 Rename stream-servers to host
Bug: b/271464937
Test: m
Change-Id: I89553dfe2e27170e1e968e234b364f13e76b2f88
2023-05-19 15:09:46 -07:00