From 6bc1fd186273da966fae880c9960fcf830b6073c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 8 Nov 2022 11:15:54 -0800 Subject: [PATCH] freedreno: add has_separate_chroma_filter to fd_dev_info 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: --- src/freedreno/common/freedreno_dev_info.h | 1 + src/freedreno/common/freedreno_devices.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/freedreno/common/freedreno_dev_info.h b/src/freedreno/common/freedreno_dev_info.h index 3e3682ddcfa..738a00516e3 100644 --- a/src/freedreno/common/freedreno_dev_info.h +++ b/src/freedreno/common/freedreno_dev_info.h @@ -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; diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py index cb507146f42..35d29538848 100644 --- a/src/freedreno/common/freedreno_devices.py +++ b/src/freedreno/common/freedreno_devices.py @@ -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,