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
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
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
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
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
Silvio Vilerino
a5af8866df
p_video_codec::encode_bitstream_sliced: Add last_slice_completion_fence for PIPE_VIDEO_SLICE_MODE_AUTO
...
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
Pohsiang (John) Hsu
eb088e339f
mediafoundation: periodic clang format - no code changes
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37820 >
2025-10-10 09:36:13 -07:00
Pohsiang (John) Hsu
d35735b32d
mediafoundation: create sample allocator for SW input sample on demand to save video memory
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37820 >
2025-10-10 09:35:58 -07:00
Sil Vilerino
3ba07819aa
mediafoundation: Remove Agility v717 guards for features now available in v618
...
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/37581 >
2025-10-01 14:46:28 -04:00
Silvio Vilerino
0395dca6d6
mediafoundation: Use lower size estimations for compressed output bitstream sizes
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37565 >
2025-09-25 16:17:27 +00:00
Wenfeng Gao
85bdbc4008
mediafoundation: look into using texture pool for metadata retrieval, e.g SATD, Bitsused map, etc.
...
frontend/mediafoundation: use texture pool for SATD map and Bitsused map
The usage of texture pool depends on the updated mfplat.dll with a fix related to D3DFMT_INDEX32.
If the mfplat.dll on the machine does not have the fix, it falls back to the original implementation without the texture pool.
Reviewed-by: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37376 >
2025-09-15 20:41:12 +00:00
Sil Vilerino
4b203d361e
mediafoundation: Implement d3d12_context_queue_priority_manager and related ICodecAPI
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37376 >
2025-09-15 20:41:12 +00:00
Pohsiang (John) Hsu
dac9360bac
mediafoundation: periodic clang-format, no code changes
...
Reviewed-by: Wenfeng Gao <wenfeng@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37035 >
2025-08-27 23:18:35 +00:00
Pohsiang (John) Hsu
4f7076f458
mediafoundation: change frame preanalysis rc from ifdef to runtime control
...
add support for specifying the following experimental controls
- CODECAPI_AVEncVideoRateControlFramePreAnalysis
- CODECAPI_AVEncVideoRateControlFramePreAnalysisExternalReconDownscale
to make testing easier.
Reviewed-by: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36236 >
2025-07-19 01:28:01 +00:00
Sil Vilerino
71f61ae7bb
mediafoundation: Do GPU-GPU encoder sync for two-pass input vpblit
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36236 >
2025-07-19 01:28:01 +00:00
Wenfeng Gao
f6e95a7233
mediafoundation: support CODECAPI_AVEncVideoSatdMapBlockSize and MFSampleExtension_VideoEncodeSatdMap for SATD map.
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36236 >
2025-07-19 01:28:00 +00:00
Sil Vilerino
9c452f8140
mediafoundation: Fix interop without copy fallback from DX11 to DX12
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com >
Reviewed-by: Rohit Athavale <rathavale@microsoft.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13446
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36082 >
2025-07-11 18:47:46 +00:00
Mike Blumenkrantz
035d837a92
gallium: fix timeline semaphore value passing
...
using a screen method for this is broken since the value can change
before it is flushed. it must be passed along with the methods that use it
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35866 >
2025-07-07 21:18:29 +00:00
Jesse Natalie
eca4743535
mediafoundation: Fix fence handling
...
- Use the right fence_wait method on the codec instead of the screen.
- Use fence_wait instead of using shared handles to wait.
- Release fence references.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35900 >
2025-07-07 15:41:28 +00:00
Jesse Natalie
5f3a7cee83
gallium/video: Frontends separate in_fence and out_fence
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35900 >
2025-07-07 15:41:28 +00:00
Pohsiang (John) Hsu
f30214c1ef
mediafoundation: periodic clang-format
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35413 >
2025-06-10 13:42:24 +00:00
Wenfeng Gao
c4dd9027db
mediafoundation: enable new CODECAPI properties for frame stats
...
CODECAPI_AVEncVideoEnableFramePsnrYuv
CODECAPI_AVEncVideoEnableSpatialAdaptiveQuantization
CODECAPI_AVEncVideoOutputQPMapBlockSize
CODECAPI_AVEncVideoOutputBitsUsedMapBlockSize
Reviewed-By: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35264 >
2025-06-05 22:02:01 +00:00
Pohsiang (John) Hsu
4df6954219
mediafoundation: Allow to build multiple codec MFT DLLs in one build pass
...
Reviewed-by: Sil Vilerino <sivileri@microsoft.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13235
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35264 >
2025-06-05 22:02:01 +00:00
Sil Vilerino
d9f0ddf336
mediafoundation: Request PSNR frame stats
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35264 >
2025-06-05 22:02:00 +00:00
Sil Vilerino
caa74854ec
mediafoundation: Implement full/lower resolution two pass
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35264 >
2025-06-05 22:02:00 +00:00
Sil Vilerino
5e44557686
mediafoundation: Upgrade to use DirectX-Headers 717 SDK from previous 716 version
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35264 >
2025-06-05 22:01:58 +00:00
Pohsiang (John) Hsu
d348fd5fb5
mediafoundation: Add mediafoundation frontend
...
Reviewed-by: <yuboxie@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34843 >
2025-05-23 15:30:04 +00:00