frontends/va: Return P010/P016 as possible surface formats when encoding
authorThong Thai <thong.thai@amd.com>
Thu, 22 Oct 2020 01:54:57 +0000 (21:54 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 00:14:42 +0000 (00:14 +0000)
commit0eccd15852b9f1933166447cee8a8409d90bfe79
treef5a25982d264aa105ccf38b7dd80d60fb28fc9e4
parentb50f40fa5a9ea5c807803aa5beccff1ba6fbeb5b
frontends/va: Return P010/P016 as possible surface formats when encoding

When gstreamer's vaapih265enc queries for possible surface formats, it
only queries using VA_RT_FORMAT_YUV420, so add P010 and P016 as possible
surface formats to enable 10-bit/16-bit encoding.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7268>
src/gallium/frontends/va/surface.c