libs: display: add vpp color standard quirk for i965 driver
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 4 Feb 2020 18:27:23 +0000 (10:27 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 4 Feb 2020 21:59:59 +0000 (13:59 -0800)
The i965 does not properly report supported vpp color
standards.

gst-libs/gst/vaapi/gstvaapidisplay.c
gst-libs/gst/vaapi/gstvaapidisplay.h

index 593694d..0a34e1b 100644 (file)
@@ -787,6 +787,7 @@ set_driver_quirks (GstVaapiDisplay * display)
   } vaapi_driver_quirks_table[] = {
     /* @XXX(victor): is this string enough to identify it */
     { "AMD", GST_VAAPI_DRIVER_QUIRK_NO_CHECK_SURFACE_PUT_IMAGE },
+    { "i965", GST_VAAPI_DRIVER_QUIRK_NO_CHECK_VPP_COLOR_STD },
   };
   /* *INDENT-ON* */
 
index 968abf9..0f6f136 100644 (file)
@@ -92,10 +92,13 @@ typedef struct _GstVaapiDisplay                 GstVaapiDisplay;
  * @GST_VAAPI_DRIVER_QUIRK_NO_CHECK_SURFACE_PUT_IMAGE: if driver
  *   crashes when try to put an image in a reused surface.
  *   https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2016
+ * @GST_VAAPI_DRIVER_QUIRK_NO_CHECK_VPP_COLOR_STD: if driver does not
+ *   properly report supported vpp color standards.
  */
 typedef enum
 {
   GST_VAAPI_DRIVER_QUIRK_NO_CHECK_SURFACE_PUT_IMAGE = (1U << 0),
+  GST_VAAPI_DRIVER_QUIRK_NO_CHECK_VPP_COLOR_STD = (1U << 1),
 } GstVaapiDriverQuirks;
 
 /**