freedreno: add has_separate_chroma_filter to fd_dev_info
authorChia-I Wu <olvaffe@gmail.com>
Tue, 8 Nov 2022 19:15:54 +0000 (11:15 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Nov 2022 00:29:09 +0000 (00:29 +0000)
The blob driver does not support
VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
before a6xx_gen3.  It still sets CHROMA_LINEAR bit according to
chromaFilter, but the bit has no effect before a6xx_gen3 (confirmed on
a618 with blob version 512.490.0).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19609>

src/freedreno/common/freedreno_dev_info.h
src/freedreno/common/freedreno_devices.py

index 3e3682d..738a005 100644 (file)
@@ -101,6 +101,7 @@ struct fd_dev_info {
          bool depth_bounds_require_depth_test_quirk;
 
          bool has_tex_filter_cubic;
+         bool has_separate_chroma_filter;
 
          bool has_sample_locations;
 
index cb50714..35d2953 100644 (file)
@@ -231,6 +231,7 @@ a6xx_gen3 = dict(
         tess_use_shared = True,
         storage_16bit = True,
         has_tex_filter_cubic = True,
+        has_separate_chroma_filter = True,
         has_sample_locations = True,
         has_ccu_flush_bug = True,
         has_8bpp_ubwc = False,
@@ -251,6 +252,7 @@ a6xx_gen4 = dict(
         tess_use_shared = True,
         storage_16bit = True,
         has_tex_filter_cubic = True,
+        has_separate_chroma_filter = True,
         has_sample_locations = True,
         has_ccu_flush_bug = True,
         has_cp_reg_write = False,