Commit a6e1c5ac authored by Chris Wilson's avatar Chris Wilson

drm/i915: Always define GEN as part of GENx_FEATURES

Be consistent and define the device's GEN as part of the GENx_FEATURE.
It will be overridden by the next gen upon inheriting, as per usual.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180215081930.11477-2-chris@chris-wilson.co.uk
parent bc76298e
...@@ -383,6 +383,7 @@ static const struct intel_device_info intel_haswell_gt3_info = { ...@@ -383,6 +383,7 @@ static const struct intel_device_info intel_haswell_gt3_info = {
#define GEN8_FEATURES \ #define GEN8_FEATURES \
G75_FEATURES, \ G75_FEATURES, \
GEN(8), \
BDW_COLORS, \ BDW_COLORS, \
.page_sizes = I915_GTT_PAGE_SIZE_4K | \ .page_sizes = I915_GTT_PAGE_SIZE_4K | \
I915_GTT_PAGE_SIZE_2M, \ I915_GTT_PAGE_SIZE_2M, \
...@@ -393,7 +394,6 @@ static const struct intel_device_info intel_haswell_gt3_info = { ...@@ -393,7 +394,6 @@ static const struct intel_device_info intel_haswell_gt3_info = {
#define BDW_PLATFORM \ #define BDW_PLATFORM \
GEN8_FEATURES, \ GEN8_FEATURES, \
GEN(8), \
.platform = INTEL_BROADWELL .platform = INTEL_BROADWELL
static const struct intel_device_info intel_broadwell_gt1_info = { static const struct intel_device_info intel_broadwell_gt1_info = {
...@@ -452,6 +452,7 @@ static const struct intel_device_info intel_cherryview_info = { ...@@ -452,6 +452,7 @@ static const struct intel_device_info intel_cherryview_info = {
#define GEN9_FEATURES \ #define GEN9_FEATURES \
GEN8_FEATURES, \ GEN8_FEATURES, \
GEN(9), \
GEN9_DEFAULT_PAGE_SIZES, \ GEN9_DEFAULT_PAGE_SIZES, \
.has_logical_ring_preemption = 1, \ .has_logical_ring_preemption = 1, \
.has_csr = 1, \ .has_csr = 1, \
...@@ -461,7 +462,6 @@ static const struct intel_device_info intel_cherryview_info = { ...@@ -461,7 +462,6 @@ static const struct intel_device_info intel_cherryview_info = {
#define SKL_PLATFORM \ #define SKL_PLATFORM \
GEN9_FEATURES, \ GEN9_FEATURES, \
GEN(9), \
.platform = INTEL_SKYLAKE .platform = INTEL_SKYLAKE
static const struct intel_device_info intel_skylake_gt1_info = { static const struct intel_device_info intel_skylake_gt1_info = {
...@@ -535,7 +535,6 @@ static const struct intel_device_info intel_geminilake_info = { ...@@ -535,7 +535,6 @@ static const struct intel_device_info intel_geminilake_info = {
#define KBL_PLATFORM \ #define KBL_PLATFORM \
GEN9_FEATURES, \ GEN9_FEATURES, \
GEN(9), \
.platform = INTEL_KABYLAKE .platform = INTEL_KABYLAKE
static const struct intel_device_info intel_kabylake_gt1_info = { static const struct intel_device_info intel_kabylake_gt1_info = {
...@@ -556,7 +555,6 @@ static const struct intel_device_info intel_kabylake_gt3_info = { ...@@ -556,7 +555,6 @@ static const struct intel_device_info intel_kabylake_gt3_info = {
#define CFL_PLATFORM \ #define CFL_PLATFORM \
GEN9_FEATURES, \ GEN9_FEATURES, \
GEN(9), \
.platform = INTEL_COFFEELAKE .platform = INTEL_COFFEELAKE
static const struct intel_device_info intel_coffeelake_gt1_info = { static const struct intel_device_info intel_coffeelake_gt1_info = {
...@@ -577,12 +575,12 @@ static const struct intel_device_info intel_coffeelake_gt3_info = { ...@@ -577,12 +575,12 @@ static const struct intel_device_info intel_coffeelake_gt3_info = {
#define GEN10_FEATURES \ #define GEN10_FEATURES \
GEN9_FEATURES, \ GEN9_FEATURES, \
GEN(10), \
.ddb_size = 1024, \ .ddb_size = 1024, \
GLK_COLORS GLK_COLORS
static const struct intel_device_info intel_cannonlake_info = { static const struct intel_device_info intel_cannonlake_info = {
GEN10_FEATURES, GEN10_FEATURES,
GEN(10),
.platform = INTEL_CANNONLAKE, .platform = INTEL_CANNONLAKE,
.gt = 2, .gt = 2,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment