Rhys Perry
00a2ed60f8
radv/meta: use unsigned min in copy/fill shaders
...
Otherwise, this would break >2 GiB copy/fill.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Backport: 25.1
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35343 >
2025-06-05 09:55:32 +00:00
Lionel Landwerlin
426ddb4fc9
anv: fix pool allocation failure reporting
...
When resetting the pool, also reset the allocated size so that failure
to allocation correctly reports VK_ERROR_OUT_OF_POOL_MEMORY instead of
VK_ERROR_FRAGMENTED_POOL.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12690
Tested-by: David Gow <david@ingeniumdigital.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35360 >
2025-06-05 09:39:07 +00:00
Calder Young
57c5419bbd
anv: Support render to aspect other than IMAGE_ASPECT_COLOR_BIT
...
On ANV the vkCmdBeginRendering function was hard coded to use
VK_IMAGE_ASPECT_COLOR_BIT for all color attachments, instead of using
the aspect bit specified when the vkImageView was initialized, which
made it impossible for applications to render to views of multi-planar
formats like VK_FORMAT_G8_B8R8_2PLANE_420_UNORM correctly.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13221
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35340 >
2025-06-05 09:22:16 +00:00
Georg Lehmann
297fdc6636
radv: don't accidentally expose samplerFilterMinmax through Vulkan 1.2
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35339 >
2025-06-05 09:01:19 +00:00
Maíra Canal
cd7dc398d8
broadcom/ci: update expected results with kernel 6.12
...
Some tests no longer OOM after updating the devices to the 6.12 kernel.
Therefore, remove those tests from the skip list.
Also, reduce the timeout of some full-run jobs, as the VK full-run
usually takes no longer than 25 minutes in the RPi 4 and no longer than
30 minutes in the RPi 5.
Signed-off-by: Maíra Canal <mcanal@igalia.com >
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35300 >
2025-06-05 11:21:46 +02:00
Mike Blumenkrantz
1ad37360de
zink: update renderdoc layer string for android
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35350 >
2025-06-04 19:08:48 +00:00
Eric Engestrom
6eaac7c171
docs: add sha sum for 25.1.2
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35348 >
2025-06-04 19:01:14 +00:00
Eric Engestrom
aabbd9f0b2
docs: add release notes for 25.1.2
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35348 >
2025-06-04 19:01:14 +00:00
Eric Engestrom
5df6b445ba
docs: update calendar for 25.1.2
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35348 >
2025-06-04 19:01:13 +00:00
Mike Blumenkrantz
208450fc57
nir/lower_to_scalar: fix opt_varying with output reads
...
no_varying cannot be used to eliminate stores on locations which may
be subsequently read
Fixes: 0058989357 ("nir/lower_io_to_scalar: don't create output stores that have no effect")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35325 >
2025-06-04 18:21:16 +00:00
Marek Olšák
c3034fa82c
amd: replace most u_bit_consecutive* with BITFIELD_MASK/RANGE
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35346 >
2025-06-04 17:46:38 +00:00
Gurchetan Singh
feff86220c
gfxstream: fix suballocation logic using u_mm
...
- mSize should be used rather than kHostVisibleHeapSize.
Since kHostVisibleHeapSize is bigger, OOB errors occured.
- Freeing memory did not work. Look up via the offset
rather pointer. Complain loudly if offset isn't found.
- Align to 4096 bytes (page size), like the old AEMU suballocator
flow.
TEST=set deferredMapping = 0 and test via Cuttlefish
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:24 +00:00
Serdar Kocdemir
73d94d70f1
gfxstream: Fix min max reduction samplers v2
...
Test: dEQP-VK.pipeline.monolithic.sampler.view_type.*
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:24 +00:00
Serdar Kocdemir
bc79017f87
gfxstream: Allow all promoted device extensions
...
.. for api level 1.1, 1.2 and 1.3.
Also allow VK_KHR_external_memory_fd for non-Android Linux, as the
related functionalities are only implemented for that case.
Bug: 389637419
Test: dEQP smoke tests && CI
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:23 +00:00
sergiuferentz
de3361d050
gfxstream: intercept vkCmdClearColor(...) and do linear->SRGB conversion
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:23 +00:00
Serdar Kocdemir
fd40649768
gfxstream: Fix compiler warnings
...
.. for some unused function arguments.
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
Serdar Kocdemir
3ade950b6f
gfxstream: Fix codegen for the moved logging.h file
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
Serdar Kocdemir
68e42404b7
gfxstream: Implement private data extension
...
The logic is implemented on the guest side as we need special handling
for swapchain and device memory handle types.
Memory handles for coherent memory allocations on the guest can map into
a single handle on the host side, which makes it infeasible to pass
through the extension functions with handle remapping. Swapchain handles
are not passed to the host driver, so we need to keep a separate table
for them as well. Instead of separating the logic based on the handle
type, we manage all the private data set/get calls on the guest side
without encoding the commands to the host.
Test: dEQP-VK.api.object_management.private_data.*
Test: dEQP-VK.wsi.android.swapchain.private_data.*
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
Bo Hu
b6c5a548ad
gfxstream: [vulkan snapshot]: update codegen for vkUpdateDescriptorSetWithTemplateSized
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
Bo Hu
b951324606
gfxstream: [vulkan snapshot]: update codegen to handle failed api calls
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
Serdar Kocdemir
4253e5789a
gfxstream: Adjust allowed device extensions
...
To include VK_KHR_dynamic_rendering for shader_object
tests on dEQP. Also enable timeline_semaphore extension
on Android since some of the known issues are already
fixed and the extension is promoted to 1.2 core.
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:22 +00:00
sergiuferentz
f839e321b8
gfxstream: Remove MEMORY_HANDLE_OPAQUE_FD support from Guest to fix suballocation dEQP tests
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Reviewed-by: Aaron Ruby <aruby@qnx.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:21 +00:00
Bo Hu
786bd1c6f2
gfxstream: [vulkan snapshot]: update to support vkCmdCopyBuffer
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:21 +00:00
Jason Macnak
eea41d1f86
gfxstream: Update codegen license
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:20 +00:00
Serdar Kocdemir
33ba95cb0c
gfxstream: Track vkGetDeviceImageMemoryRequirements on host
...
vkGetDeviceImageMemoryRequirements can be used to get memory
requirements without creating an actual image and we should apply the
same image modifications based on the create info when returning the
memory requirements.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:20 +00:00
Bo Hu
4340dfb400
gfxstream: [vulkan snapshot]: update codegen for vkCmdBindPipeline
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:20 +00:00
Jason Macnak
e7826d89a7
gfxstream: Update GfxApiLogger namespace and header file
...
... to parallel the changes in ag/33517750.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:20 +00:00
Serdar Kocdemir
dae39cd278
gfxstream: Reduce log level on AHB allocation
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:19 +00:00
Bo Hu
464c2e35b8
gfxstream:: update code gen for vkResetCommandPool
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:19 +00:00
Jason Macnak
afab126947
gfxstream: Update gfxstreaml vk xml location
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:19 +00:00
Serdar Kocdemir
ad5f1ed77e
gfxstream: Mark VK_KHR_ray_tracing_pipeline dispatch only
...
VkStridedDeviceAddressRegionKHR structure cannot be correctly
serialized. Update codegen to not use marshalling.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:19 +00:00
Jason Macnak
3331752323
gfxstream: Remove old include
...
... no longer needed after the aemu -> gfxstream changes.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:18 +00:00
Jason Macnak
c0c10744fd
gfxstream: Update codegen for aemu -> gfxstream stream 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//...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:18 +00:00
Bo Hu
3df2a0c061
gfxstream: update sudbdecode snapshot code
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:17 +00:00
Jason Macnak
524d9b0647
gfxstream: Update codegen after many aemu -> gfxstream changes
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:17 +00:00
Jason Macnak
711606dff4
gfxstream: Update codegen to use gfxstream_common_base
...
... after ag/32953937.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:17 +00:00
Serdar Kocdemir
5a5810d2f0
gfxstream: Use logging functions for call tracing
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:16 +00:00
Joshua Duong
9bc395fca4
gfxstream: VkDecoder: break from seqno logic when puid dies.
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:16 +00:00
Jason Macnak
30fd362ca7
gfxstream: Update iostream header
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:15 +00:00
Serdar Kocdemir
9ba070a398
gfxstream: Track sparse image related functions
...
Sparse resources are not commonly available on Android devices
and overriding the functions enables the host to disable the
feature support when needed.
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:15 +00:00
Jason Macnak
1d4b4fe8b7
gfxstream: Update to new logging
...
Reviewed-by: Marcin Radomski <dextero@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323 >
2025-06-04 17:24:14 +00:00
Martin Krastev
f1f684ffa7
svga/ci: return svga piglit job to automatic rules pool
...
Make svga piglit job extend from vmware automatic (non-manual) rules pool
again. There was an issue with local nginx caching of FDO artifacts, which
led to jobs sporadically timing out on their http-download sections; the
issue has been resolved now.
Signed-off-by: Martin Krastev <martin.krastev@broadcom.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35341 >
2025-06-04 17:04:34 +00:00
Lionel Landwerlin
978933c015
nir/opt_algebraic: extend lowering for (i|u)bitfield_extract
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35334 >
2025-06-04 16:28:39 +00:00
Antonio Ospite
9f65081e02
ci/android: use curl -O to avoid having to specify the same filename again
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:42 +00:00
Antonio Ospite
dc1502af2e
ci/android: use newer cuttlefish images
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:42 +00:00
Antonio Ospite
088a4b0e23
ci/android: configure both hard limits and soft limits
...
The soft limits cannot go above the hard limits values, so the hard
limits should be configured too, just in case default limits values set
by the kernel or the init process are too small.
E.g. when booting with `init=/bin/sh` we have:
$ cat /proc/1/limits
Limit Soft Limit Hard Limit Units
...
Max open files 1024 4096 files
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:42 +00:00
Antonio Ospite
859e903004
ci/android: skip org.skia.skqp.SkQPRunner#UnitTest_SurfaceResolveTest
...
Skip `org.skia.skqp.SkQPRunner#UnitTest_SurfaceResolveTest` when running
the `android-angle-android-cts` job, as it fails sporadically.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:42 +00:00
Antonio Ospite
0a8fec6c6d
ci/android: skip org.skia.skqp.SkQPRunner#UnitTest_BulkTextureRectTest
...
Skip `org.skia.skqp.SkQPRunner#UnitTest_BulkTextureRectTest` when running
the `android-angle-android-cts` job, as it sometimes fails with memory
related issues.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:42 +00:00
Guilherme Gallo
cf6f97a224
ci/android: reduce launch_cvd memory limit to 4GB by default
...
We only have 8GB on the Brya Chromebook used for venus testing, and the
job is unstable because using all the available RAM causes OOM kills.
So reduce launch_cvd memory limit to 4GB by default, still allowing to
change the default by setting the CUTTLEFISH_MEMORY variable in jobs
that might want a different value.
This change has been inspired by CROSVM_MEMORY, but a new variable is
used because technically cuttlefish can also use qemu in some setups,
not only crosvm.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:41 +00:00
Guilherme Gallo
769a4aa34e
ci/android: disable errexit in trap function
...
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126 >
2025-06-04 15:43:41 +00:00