Silvio Vilerino
7fb5c10f65
mediafoundation: Add a min slice buffer size stopgap
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:44 -07:00
Silvio Vilerino
027b523398
mediafoundation: Fix num_output_buffers for PIPE_VIDEO_SLICE_MODE_AUTO
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:40 -07:00
Pohsiang (John) Hsu
240b9159f4
mediafoundation: setup wpp logging in more of the files and add some error handling on dpb manager and reference frame tracker
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144 >
2025-10-29 20:27:28 +00:00
Pohsiang (John) Hsu
ab2457591b
mediafoundation: periodic clang-format, no code changes
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144 >
2025-10-29 20:27:28 +00:00
Pohsiang (John) Hsu
d7e2754116
mediafoundation: for low latency, change stats pool size to 2, this is because there is no synchronization btwn returning MF sample and ProcessInput
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144 >
2025-10-29 20:27:28 +00:00
Silvio Vilerino
4169a7f36a
mediafoundation: Add AVEncVideoReconstructedPictureOutputMode and MFSampleExtension_VideoEncodeReconstructedPicture
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144 >
2025-10-29 20:27:27 +00:00
Silvio Vilerino
0953924dbe
mediafoundation: Add m_bHWSupportReadableReconstructedPicture
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38144 >
2025-10-29 20:27:26 +00:00
Mike Blumenkrantz
e1a4f53680
lavapipe: maintenance10
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38091 >
2025-10-29 18:25:42 +00:00
Job Noorman
e16be20195
rusticl: fix mismatched-lifetime-syntaxes lint warning
...
This warn-by-default lint introduced in Rust 1.89.0 causes the following
warning:
warning: hiding a lifetime that's elided elsewhere is confusing
--> ../../src/gallium/frontends/rusticl/core/semaphore.rs:276:14
|
276 | fn state(&self) -> MutexGuard<SemaphoreState> {
| ^^^^^ -------------------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
276 | fn state(&self) -> MutexGuard<'_, SemaphoreState> {
| +++
Follow the compiler's suggestion to fix this.
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38132 >
2025-10-29 10:35:29 +00:00
David Rosca
1232a7a754
frontends/va: Always reset H264 slice ref modification and marking count
...
This way the driver doesn't need to check the flag.
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38050 >
2025-10-28 09:43:26 +00:00
David Rosca
8c2de21090
frontends/va: Support H264 encode pic_order_cnt_type 1
...
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38052 >
2025-10-28 09:14:24 +00:00
Silvio Vilerino
ca3ba3f924
mediafoundation: Remove unused AllocatePipeResourceFromAllocator
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:56 +00:00
Silvio Vilerino
e873beb33c
mediafoundation: Cleanup MaxL1References variables
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:56 +00:00
Silvio Vilerino
4b75fcac47
mediafoundation: Optimize STL usage in reference_frames_tracker_hevc.cpp
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:56 +00:00
Silvio Vilerino
2b34f30e00
mediafoundation: encode.cpp: Remove redundant lock() and memset()
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:55 +00:00
Silvio Vilerino
9b97a2ef93
mediafoundation: Fix width/height typo in alignment calculation
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:55 +00:00
Pohsiang (John) Hsu
80da774734
mediafoundation: fix sporadic build failure with u_inlines.h not found on test target
...
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057 >
2025-10-24 19:45:54 +00:00
Alyssa Rosenzweig
b824ef83ab
util/dynarray: infer type in append
...
Most of the time, we can infer the type to append in
util_dynarray_append using __typeof__, which is standardized in C23 and
support in Jesse's MSMSVCV. This patch drops the type argument most of
the time, making util_dynarray a little more ergonomic to use.
This is done in four steps.
First, rename util_dynarray_append -> util_dynarray_append_typed
bash -c "find . -type f -exec sed -i -e 's/util_dynarray_append(/util_dynarray_append_typed(/g' \{} \;"
Then, add a new append that infers the type. This is much more ergonomic
for what you want most of the time.
Next, use type-inferred append as much as possible, via Coccinelle
patch (plus manual fixup):
@@
expression dynarray, element;
type type;
@@
-util_dynarray_append_typed(dynarray, type, element);
+util_dynarray_append(dynarray, element);
Finally, hand fixup cases that Coccinelle missed or incorrectly
translated, of which there were several because we can't used the
untyped append with a literal (since the sizeof won't do what you want).
All four steps are squashed to produce a single patch changing every
util_dynarray_append call site in tree to either drop a type parameter
(if possible) or insert a _typed suffix (if we can't infer). As such,
the final patch is best reviewed by hand even though it was
tool-assisted.
No Long Linguine Meals were involved in the making of this patch.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38038 >
2025-10-24 18:32:07 +00:00
Mel Henning
fafb81cd02
treewide: Use vk_collect_dependency_info_src_stages
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37961 >
2025-10-22 19:22:17 +00:00
Eric Engestrom
4ab65cdaa4
docs: update/fix vk spec urls
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37993 >
2025-10-22 09:23:34 +02:00
Konstantin Seurer
990f1868ec
vulkan/cmd_queue: Free all elements of struct arrays
...
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37710 >
2025-10-21 19:50:47 +02:00
Silvio Vilerino
44d8e999e2
mediafoundation: Also set pSyncObjectQueue = m_spStagingQueue when DX11 input sample
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:23:31 -07:00
Silvio Vilerino
d2cbbccaaa
mediafoundation: Only wait on pSyncObjectQueue for stats completion if any stat was enabled
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:23:27 -07:00
Silvio Vilerino
4f7aa40222
mediafoundation: Allocate pro-rated buffer sizes for multi-slice encoding
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:23:21 -07:00
Silvio Vilerino
b454c35318
mediafoundation: Only use sliced mode when CODECAPI_AVEncSliceGenerationMode is set, disregarding num slices configured
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:23:11 -07:00
Silvio Vilerino
71aecf4a93
mediafoundation: SliceGeneration=1: Zero copy IMFSample output with wrapped ID3D12Resource frame/slice buffers
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:23:06 -07:00
Silvio Vilerino
416398aecb
mediafoundation: Only attach stats to last slice mfsample
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:21:17 -07:00
Silvio Vilerino
80c8994455
mediafoundation: Add pLastSliceFence shortcircuit wait for auto slice mode async slices mode
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:21:12 -07:00
Silvio Vilerino
fd546c1cde
mediafoundation: Refactor frame, multi slice and combine slice IMFSample emission to make it simpler
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:21:07 -07:00
Silvio Vilerino
134274488d
mediafoundation: Attach stats deferred buffers to all samples for simplicity
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:55 -07:00
Silvio Vilerino
b4592bbb77
mediafoundation: Add some more trace logging
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:49 -07:00
Silvio Vilerino
43112ce1a4
mediafoundation: Emit multiple MFSamples per slice when CODECAPI_AVEncSliceGenerationMode = 1i
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:43 -07:00
Silvio Vilerino
3de675eef5
mediafoundation: Prepare for multi sample multi slice
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:38 -07:00
Silvio Vilerino
e612709141
mediafoundation: Add support for setting CODECAPI_AVEncSliceGenerationMode
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:21 -07:00
Silvio Vilerino
a6f84de5b0
mediafoundation: emit subregions samples before pAsyncFence wait to reduce latency
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:13 -07:00
Silvio Vilerino
4bc6ace7a1
mediafoundation: Attach async stats DXGI buffers without CPU fence wait
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:08 -07:00
Silvio Vilerino
d7384e9f65
mediafoundation: Set ConfigureBitstreamOutputSampleAttributes earlier for async subregion notifications do not need resolved metadata for it
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:20:03 -07:00
Silvio Vilerino
791a966510
mediafoundation: Add Resolve completion fence to stats IDXGIBuffers
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:19:55 -07:00
Silvio Vilerino
88492ee80b
mediafoundation: Helpers ConfigureBitstreamOutputSampleAttributes/ConfigureStatsMetadataOutputSampleAttributes
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:19:26 -07:00
Pohsiang (John) Hsu
932401ddf0
mediafoundation: add stats resource pool so we can use pool for QP map as well
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982 >
2025-10-21 09:19:14 -07:00
Georg Lehmann
9e41a7c139
treewide: use nir_load_global alias of nir_build_load_global
...
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37959 >
2025-10-21 12:37:58 +02:00
Eric Engestrom
1773e2df50
ci: uprev vkd3d
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
0845d1b69c...03cca4cd97
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37960 >
2025-10-21 03:57:14 +00:00
Silvio Vilerino
a5af8866df
p_video_codec::encode_bitstream_sliced: Add last_slice_completion_fence for PIPE_VIDEO_SLICE_MODE_AUTO
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37936 >
2025-10-20 13:37:16 +00:00
David Rosca
09ff0fa005
frontends/va: Move remainig processing functions to postproc.c
...
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37545 >
2025-10-16 16:33:15 +00:00
David Rosca
7a5270d4df
frontends/va: Move decode functions to separate file
...
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37545 >
2025-10-16 16:33:15 +00:00
David Rosca
ba0a059129
frontends/va: Move encode functions to separate file
...
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37545 >
2025-10-16 16:33:15 +00:00
Tomeu Vizoso
836e1d65f6
teflon: Link to the ethos driver
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Acked-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36699 >
2025-10-15 20:10:15 +00:00
Tomeu Vizoso
b3262b37ce
teflon: Add support for the ResizeNearestNeighbor operation
...
Acked-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36699 >
2025-10-15 20:10:15 +00:00
Tomeu Vizoso
0001dab219
teflon: Add support for the StridedSlice operation
...
Acked-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36699 >
2025-10-15 20:10:14 +00:00
Tomeu Vizoso
83b9eb038f
teflon: Add support for the MaxPool operation
...
Acked-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36699 >
2025-10-15 20:10:13 +00:00