turnip: set ycbcr feature bits properly
authorChia-I Wu <olvaffe@gmail.com>
Tue, 8 Nov 2022 19:59:43 +0000 (11:59 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Nov 2022 00:29:09 +0000 (00:29 +0000)
commitaa86369163c2d3a5420b6063fcf809a3381332bd
tree643e9f016913b35e8c21ec50069482e6e2722a8c
parent6bc1fd186273da966fae880c9960fcf830b6073c
turnip: set ycbcr feature bits properly

Set ycbcr feature bits only for ycbcr formats.  Besides, we can control
chroma locations only for planar formats and we support
VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
on newer gens.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19609>
src/freedreno/vulkan/tu_formats.c