Karol Herbst
aa5a981b83
vtn/opencl: support fp16 builtins
...
If we can't find an appropiate builtin in the libclc library, we add our
own wrapper at runtime executing the op in fp32 space.
Libclc has variying support for fp16 opcodes and with a libclc prior
llvm-19 it does not work as good as with the newer one.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34053 >
2025-06-05 13:17:27 +00:00
Karol Herbst
ca01635075
clc: support fp16 spec constants
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34053 >
2025-06-05 13:17:27 +00:00
Karol Herbst
f8305828f4
util/u_printf: support printing fp16 values
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34053 >
2025-06-05 13:17:27 +00:00
Karol Herbst
162b604043
freedreno/ci: add CL fp16 skips
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34053 >
2025-06-05 13:17:27 +00:00
Sil Vilerino
24eb46b720
d3d12: Add video encode PSNR output stats
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
1b801a95ae
pipe: Add video encode PSNR output stats
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
228a0a46a5
d3d12: Implement full/lower two pass video encode
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
daa16cf0d4
pipe: Two pass video encode definitions
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
0e63becefb
d3d12: Use helper to properly initialize d3d12_fences in d3d12 video
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
7fb98a1e6f
d3d12: Use RefPicListL0/L1 sizes in pipe_h265_enc_picture_desc when supported
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
8f6077ad57
d3d12: Fix sliced encode ID3D12Resource/ID3D12Fence reuse. Note the fence value now is the frame fence value as the fence is reused
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
a562c0787f
d3d12: Add D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_DISABLE_LOOP_FILTER_ACROSS_SLICES when querying HEVC capabilities
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Sil Vilerino
f28417a7bb
d3d12: Upgrade to use DirectX-Headers 717 SDK from previous 716 version
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35263 >
2025-06-05 12:15:48 +00:00
Valentine Burley
775cd85ed3
ci/android: Add a version and renderer check for android-angle-lavapipe
...
Add one GLES 2 test to run in the deqp-runner suite of the
android-angle-lavapipe job to verify the version and renderer used.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35337 >
2025-06-05 11:43:18 +00:00
Christoph Pillmayer
0440d1dd03
panvk: Advertise VK_EXT_inline_uniform_block
...
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35178 >
2025-06-05 11:18:29 +00:00
Christoph Pillmayer
2ec6527c70
panvk: Implement VK_EXT_inline_uniform_block
...
Inline uniforms blocks are implemented as a buffer descriptor followed by
the actual inlined data.
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35178 >
2025-06-05 11:18:29 +00:00
Martin Krastev
ca8719bebf
svga/ci: vmware farm is out; temporary relegate piglit job to manual
...
Signed-off-by: Martin Krastev <martin.krastev@broadcom.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35364 >
2025-06-05 10:57:20 +00:00
Icenowy Zheng
dca392b119
Revert "zink: reject Imagination proprietary driver w/o geometryShader"
...
This reverts commit ca087e2027 .
It's discovered that the newest Rogue proprietary Vulkan driver does not
prevent us from running Zink (aside from an assert of geometryShader,
which is already changed to an if clause), and which fails previously is
because of some bugs in old driver blobs.
As the faulty blob versions are rejected now, revert this commit to
accept Rogue drivers.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34183 >
2025-06-05 10:37:56 +00:00
Icenowy Zheng
b6d7736792
zink: reject IMG blob < 24.1@6554834 unless enforced
...
Imagination closed blobs earlier than 24.1@6554834 has some issues about
NULL pCommandBuffers in VkSubmitInfo, which is present in VkSubmitInfo's
submitted by Zink.
Reject these drivers to prevent crashes, unless zink is enforced and the
user knows what they're doing.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34183 >
2025-06-05 10:37:56 +00:00
Icenowy Zheng
45d9d55cc1
zink: don't assert geometryShader for IMG proprietary driver
...
The proprietary driver for Imagination Rogue-architecture GPUs does not
come with geometryShader support.
Change the assert for it to another if condition.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34183 >
2025-06-05 10:37:56 +00:00
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
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