intel: add disable_ccs_repack to gen_device_info
authorDongwon Kim <dongwon.kim@intel.com>
Thu, 27 Jun 2019 16:54:34 +0000 (09:54 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Mon, 8 Jul 2019 17:54:38 +0000 (10:54 -0700)
add a new attribute, 'disable_ccs_repack' to gen_device info, which
indicates whether repacking of components in certain pixel formats
before compression needs to be disabled to keep the compatibility
with decompression capability of display controller (gen11+)

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/dev/gen_device_info.c
src/intel/dev/gen_device_info.h

index fec6159fd374fc07b72201a3513a919006552756..951e81d3e60e2857b9b155a0f603612440520bfe 100644 (file)
@@ -958,6 +958,7 @@ static const struct gen_device_info gen_device_info_ehl_4x8 = {
          [MESA_SHADER_GEOMETRY]  = 1032,
       },
    },
+   .disable_ccs_repack = true,
    .simulator_id = 28,
 };
 
@@ -978,6 +979,7 @@ static const struct gen_device_info gen_device_info_ehl_4x4 = {
          [MESA_SHADER_GEOMETRY]  = 1032,
       },
    },
+   .disable_ccs_repack = true,
    .num_eu_per_subslice = 4,
    .simulator_id = 28,
 };
@@ -999,6 +1001,7 @@ static const struct gen_device_info gen_device_info_ehl_2x4 = {
          [MESA_SHADER_GEOMETRY]  = 1032,
       },
    },
+   .disable_ccs_repack = true,
    .num_eu_per_subslice =4,
    .simulator_id = 28,
 };
index af13615be2b7ee695913018f45c1096dc5e0d500..4fe937355a74adcc87879799f02d9978d8d724ae 100644 (file)
@@ -74,6 +74,7 @@ struct gen_device_info
    bool has_surface_tile_offset;
    bool supports_simd16_3src;
    bool has_resource_streamer;
+   bool disable_ccs_repack;
 
    /**
     * \name Intel hardware quirks