OSDN Git Service

gen8: accept P010 as valid format
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 27 Mar 2017 16:05:40 +0000 (09:05 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 29 Mar 2017 00:29:46 +0000 (08:29 +0800)
commit437cbe03eaeb08e6f4ab70cdf8757bccb8de15dd
tree8cef7fe719626db4bca120624fd40fe28169a90d
parent228e4fc197e2a180dcbfcaba4df2a0717f6ec853
gen8: accept P010 as valid format

The functions gen8_gpe_set_surface2_state() and
gen8_gpe_media_chroma_surface_setup() asserts for the surface color
format, admiting only NV12.

Nonetheless, gen8 also can encoder surfaces with P010 color format.

This patch adds P010 color format in the assertion condition.

Fixes #106
src/i965_gpe_utils.c