Commit graph

11 commits

Author SHA1 Message Date
Yahan Zhou
a133a31a7b Add support for descriptor with inline uniform block
Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:58 +00:00
Gurchetan Singh
985b412ece gfxstream: use ASG for Vulkan streams only
Audio glitches are observed with gfxstream GLES if ASG is used.
ASG is a Vulkan thing anyways, so use pipe steams for Ranchu
HWC or gfxstream GLES.

Note this caused clang-format to over-format in a few places.

     launch_cvd --gpu_mode=gfxstream_guest_angle

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:58 +00:00
Yahan Zhou
728fbfb62b Fix testAndroidBaselineProfile2021Support for host swiftshader
Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:58 +00:00
Jason Macnak
c9ef93e498 Add error logging to aid debugging
Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Yahan Zhou
a8f4a62650 Update vk.xml and code generator
This commit updates vk.xml and code generator to make them backward
compatible. The updates in code generator includes:

 1. Parse "protect" properly.
 2. Ignore "optional" if the "optional" was added in newer vk.xml.
    - This is done by having an extra table for related fields.
 3. Parse latexmath properly.
 4. Parse "supported" properly.
 5. Skip parameters and members if they are not for Vulkan API.
 6. VkNativeBufferANDROID diverged from upstream, keep the old one.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Gurchetan Singh
38673c5537 gfxstream-guest: add precise virtio-gpu capabilities
We need separate virtio-gpu capabilities for this features, for
separate versioning.  As of right now, versioning is done via
rcGetHostExtensionsString, which calls rcGetGLString host side.

We should probably aim for separate versioning for GLES, Vulkan,
Magma -- with the possibilty of a common decoder agnostic values
for ASG.

The benefit of the virtio-gpu capabilities is they are also cached
per VM instance, so probably a bit faster than the
rcGetHostExtensionsString method.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Gurchetan Singh
680820af95 gfxstream: fix Linux guest build
After the move, various fixes are needed.

- Need to re-order directories in top-level meson file
- Need to add certain include dirs
- Use internal Vulkan headers.  These unforunately define
  Android extensions even on Linux guests, so we need a
  (LINUX_GUEST_BUILD) guard until we can fix that.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Jason Macnak
66562d7c79 Move guest/shared/* to guest/*
python android/build/python/cmake.py --feature no-rust
      python android/build/python/cmake.py --feature no-rust --gfxstream

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Jason Macnak
a19ef0a2eb Move platform into guest
... as this is currently only used in the guest.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Jason Macnak
0fa40cfc7c Handle AHB and swapchain info in VkBindImageMemoryInfo
... in order to help handle deferred AHB binding.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Merged-In: I3d5e65be8331980ce544078f81f1937cfbcf520f
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00
Jason Macnak
9106e8c3c5 Rename imported system directory to guest
Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
2024-09-19 20:05:57 +00:00