gallium/util: implement util_format_is_yuv
authorLucas Stach <l.stach@pengutronix.de>
Thu, 29 Mar 2018 14:15:14 +0000 (16:15 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 8 Apr 2018 20:10:57 +0000 (22:10 +0200)
commitdfe4a08ccddf5b9b6adf1e10510bb4534f36c459
treece66a627665a8674a9495739f3db1386b88448dc
parent19254a977bf12c1efa64aec5a480e38e48044dd6
gallium/util: implement util_format_is_yuv

This adds a helper to check if a pipe format is in YUV color space.
Drivers want to know about this, as YUV mostly needs special handling.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/auxiliary/util/u_format.h