i965: Make feature macros gen8 based
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 29 Dec 2015 17:11:02 +0000 (09:11 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 9 Jun 2017 22:27:14 +0000 (15:27 -0700)
All the "features" of the hardware are similar starting with GEN8, so remove as
much of the GEN9 uniqueness as possible. This makes implementing future gen
platforms a bit easier.

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/common/gen_device_info.c

index e5c74c75acfa1d78c21942f9cef7ad8ba9ba0a40..67da22a55f7db922e435cece57e3f3c224c1da01 100644 (file)
@@ -388,15 +388,8 @@ static const struct gen_device_info gen_device_info_chv = {
    }
 };
 
-#define GEN9_FEATURES                               \
+#define GEN9_HW_INFO                                \
    .gen = 9,                                        \
-   .has_hiz_and_separate_stencil = true,            \
-   .has_resource_streamer = true,                   \
-   .must_use_separate_stencil = true,               \
-   .has_llc = true,                                 \
-   .has_pln = true,                                 \
-   .supports_simd16_3src = true,                    \
-   .has_surface_tile_offset = true,                 \
    .max_vs_threads = 336,                           \
    .max_gs_threads = 336,                           \
    .max_tcs_threads = 336,                          \
@@ -464,6 +457,10 @@ static const struct gen_device_info gen_device_info_chv = {
       },                                           \
    }
 
+#define GEN9_FEATURES                               \
+   GEN8_FEATURES,                                   \
+   GEN9_HW_INFO
+
 static const struct gen_device_info gen_device_info_skl_gt1 = {
    GEN9_FEATURES, .gt = 1,
    .num_slices = 1,