freedreno/a6xx: set chroma offsets to MIDPOINT
authorChia-I Wu <olvaffe@gmail.com>
Thu, 3 Nov 2022 22:43:43 +0000 (15:43 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Nov 2022 05:15:38 +0000 (05:15 +0000)
commit10b0a5dc34d95d2c381ad1141e53af322feb5213
treec72dcf22d707b7bb2c4b3625129759cf124b362e
parentcbf68450f85f7bf18186cd8792948e0855c654d7
freedreno/a6xx: set chroma offsets to MIDPOINT

Vulkan has VkChromaLocation and all drivers suggest
VK_CHROMA_LOCATION_MIDPOINT on Android.  The blob also uses MIDPOINT.
Based on my limited tests, the image quality is higher with MIDPOINT.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19514>
src/gallium/drivers/freedreno/a6xx/fd6_texture.c