summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-04 10:27:23 -0800
committerU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-04 13:59:59 -0800
commitc42938fd53b54e8ead9b5dee452a007908c96888 (patch)
treef17b99b6250ebd8b2b84a6bba05761ee40609a2c
parent7f61ad79389fcd28c82f068701c3fff18bc3e4b6 (diff)
libs: display: add vpp color standard quirk for i965 driver
The i965 does not properly report supported vpp color standards.
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay.c1
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c
index 593694d9..0a34e1bc 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay.c
@@ -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* */
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.h b/gst-libs/gst/vaapi/gstvaapidisplay.h
index 968abf95..0f6f136a 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay.h
+++ b/gst-libs/gst/vaapi/gstvaapidisplay.h
@@ -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;
/**