[vlc-commits] [Git][videolan/vlc][3.0.x] 5 commits: dxgi_fmt: add the Microsoft manufacturer ID
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jul 18 09:30:40 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
22647848 by Steve Lhomme at 2026-07-18T09:00:56+00:00
dxgi_fmt: add the Microsoft manufacturer ID
See https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/d3d10-graphics-programming-guide-dxgi#new-info-about-enumerating-adapters-for-windows-8
(cherry picked from commit 6457b7168e6bfaf7ff8ed465af4e5b19469c505e)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
c52e1024 by jianfeng.zheng at 2026-07-18T09:00:56+00:00
dxgi_fmt: add the Mthreads manufacturer ID
Signed-off-by: jianfeng.zheng <jianfeng.zheng at mthreads.com>
(cherry picked from commit 1d65d4fa6e657d1d036fec4cb6ddfe46f2ce0483)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
de4a2784 by Steve Lhomme at 2026-07-18T09:00:56+00:00
dxgi_fmt: add missing Moore Threads vendor name
Missing from 1d65d4fa6e657d1d036fec4cb6ddfe46f2ce0483.
- - - - -
a9626a8e by jianfeng.zheng at 2026-07-18T09:00:56+00:00
direct3d11: add Mthreads based video super resolution
Signed-off-by: jianfeng.zheng <jianfeng.zheng at mthreads.com>
(cherry picked from commit 290ffb2070b2f9de5c54ee74778aeba30b48346c)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
df010408 by Steve Lhomme at 2026-07-18T09:00:56+00:00
NEWS: Add Mthreads super resolution support
- - - - -
4 changed files:
- NEWS
- modules/video_chroma/dxgi_fmt.c
- modules/video_chroma/dxgi_fmt.h
- modules/video_output/win32/d3d11_scaler.cpp
Changes:
=====================================
NEWS
=====================================
@@ -33,6 +33,7 @@ Service Discovery:
Video Output:
* Fix Direct3D11 adjust filter and texture leaks
* Fix MediaCodec crop validation
+ * Super Resolution scaling with Moore Threads GPUs
Windows:
* Support NV12 DirectShow capture
=====================================
modules/video_chroma/dxgi_fmt.c
=====================================
@@ -141,6 +141,8 @@ const char *DxgiVendorStr(int gpu_vendor)
{ GPU_MANUFACTURER_INTEL, "Intel" },
{ GPU_MANUFACTURER_S3, "S3 Graphics" },
{ GPU_MANUFACTURER_QUALCOMM, "Qualcomm" },
+ { GPU_MANUFACTURER_MICROSOFT, "Microsoft" },
+ { GPU_MANUFACTURER_MTGPU, "Moore Threads" },
{ 0, "Unknown" }
};
=====================================
modules/video_chroma/dxgi_fmt.h
=====================================
@@ -39,6 +39,8 @@ extern "C" {
#define GPU_MANUFACTURER_INTEL 0x8086
#define GPU_MANUFACTURER_S3 0x5333
#define GPU_MANUFACTURER_QUALCOMM 0x4D4F4351
+#define GPU_MANUFACTURER_MICROSOFT 0x1414 // "Microsoft Basic Render Driver"
+#define GPU_MANUFACTURER_MTGPU 0x1ED5
#define D3D11_MAX_SHADER_VIEW 4
=====================================
modules/video_output/win32/d3d11_scaler.cpp
=====================================
@@ -120,6 +120,10 @@ checked:
{
canProcess = true; // detection doesn't work
}
+ else if (d3d_dev->adapterDesc.VendorId == GPU_MANUFACTURER_MTGPU)
+ {
+ canProcess = true; // detection doesn't work
+ }
#ifdef HAVE_AMF_SCALER
else if (d3d_dev->adapterDesc.VendorId == GPU_MANUFACTURER_AMD)
{
@@ -578,6 +582,34 @@ int D3D11_UpscalerUpdate(vlc_object_t *vd, d3d11_scaler *scaleProc, d3d11_device
goto done_super;
}
}
+ else if (d3d_dev->adapterDesc.VendorId == GPU_MANUFACTURER_MTGPU)
+ {
+ constexpr GUID kMtvsrGUID{ 0x28D65B12, 0x957F, 0x4C0C, {0xA9, 0x34, 0x3B, 0x5D, 0xBE, 0xB4, 0x31, 0x0F} };
+ constexpr UINT kMtvsrVersion = 0x1;
+ constexpr UINT kMtvsrMethod = 0x1;
+ constexpr UINT kMtvsrLevel = 1;
+ struct ExtInfo
+ {
+ UINT version;
+ UINT method;
+ UINT level;
+ UINT enable;
+ } extInfo = {
+ kMtvsrVersion,
+ kMtvsrMethod,
+ kMtvsrLevel,
+ upscale ? 1u : 0u,
+ };
+ hr = scaleProc->d3dvidctx->VideoProcessorSetStreamExtension(
+ scaleProc->processor.Get(), 0,
+ &kMtvsrGUID, sizeof(extInfo), &extInfo);
+
+ if (FAILED(hr)) {
+ msg_Err(vd, "Failed to set the Mthreads video super resolution extension. (hr=0x%lX)", hr);
+ d3d11_device_unlock(d3d_dev);
+ goto done_super;
+ }
+ }
}
d3d11_device_unlock(d3d_dev);
#ifdef HAVE_AMF_SCALER
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/42ed9e5dc892e8fe6303cca4dc815998ab33f9a8...df010408cc1f91becb0845e12e40498a5eefb0c6
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/42ed9e5dc892e8fe6303cca4dc815998ab33f9a8...df010408cc1f91becb0845e12e40498a5eefb0c6
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list