d3d11compositor: Workaround blending artifacts on Intel platform
authorSeungha Yang <seungha@centricular.com>
Mon, 23 Jan 2023 14:29:08 +0000 (23:29 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 23 Jan 2023 14:34:04 +0000 (23:34 +0900)
Disable vendor implemented converter in d3d11compositor to workaround
artifacts

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3770>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp

index 6a4ae2e..328ca79 100644 (file)
@@ -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,