From 467a2408a1680fa20773c603741cef9d060c5846 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 23 Jan 2023 23:29:08 +0900 Subject: [PATCH] d3d11compositor: Workaround blending artifacts on Intel platform Disable vendor implemented converter in d3d11compositor to workaround artifacts Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp index 6a4ae2ee06..328ca79576 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp @@ -825,6 +825,10 @@ gst_d3d11_compositor_pad_setup_converter (GstVideoAggregatorPad * pad, if (!cpad->convert) { GstStructure *config = gst_structure_new ("converter-config", + /* XXX: Always use shader, to workaround buggy blending behavior of + * vendor implemented converter. Need investigation */ + GST_D3D11_CONVERTER_OPT_BACKEND, GST_TYPE_D3D11_CONVERTER_BACKEND, + GST_D3D11_CONVERTER_BACKEND_SHADER, GST_D3D11_CONVERTER_OPT_GAMMA_MODE, GST_TYPE_VIDEO_GAMMA_MODE, cpad->gamma_mode, GST_D3D11_CONVERTER_OPT_PRIMARIES_MODE,