[vlc-commits] [Git][videolan/vlc][master] qt: enable debug layer when probing rhi d3d11 backend in debug builds
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri May 22 06:19:25 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9e84abbd by Fatih Uzunoglu at 2026-05-22T05:58:37+00:00
qt: enable debug layer when probing rhi d3d11 backend in debug builds
DirectX tells that enabling debug layer provides
more information if something goes wrong, which is
the point of probing.
Note that this is only used during probing, not when
`QQuickWindow` creates a rhi instance for itself.
- - - - -
1 changed file:
- modules/gui/qt/qt.cpp
Changes:
=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -981,6 +981,9 @@ static void *Thread( void *obj )
{
QRhiD3D11InitParams params;
+#ifndef NDEBUG
+ params.enableDebugLayer = true;
+#endif
if (QRhi::probe(QRhi::D3D11, ¶ms))
{
return {QSGRendererInterface::Direct3D11, false};
@@ -1008,6 +1011,9 @@ static void *Thread( void *obj )
// to see if DirectX Warp would be functional. This is essentially the same
// as what `::probe()` does, at least for DirectX:
QRhiD3D11InitParams params;
+#ifndef NDEBUG
+ params.enableDebugLayer = true;
+#endif
QRhi *rhi = QRhi::create(QRhi::D3D11, ¶ms, QRhi::PreferSoftwareRenderer);
if (rhi)
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9e84abbd8cc0582fda24b7a804a371bf41e46c5e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9e84abbd8cc0582fda24b7a804a371bf41e46c5e
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