diff options
author | Lukasz Kalamarz <lukasz.kalamarz@intel.com> | 2018-07-12 16:15:23 +0200 |
---|---|---|
committer | Katarzyna Dec <katarzyna.dec@intel.com> | 2018-07-18 10:52:44 +0200 |
commit | 435c5093aa2043eb832a5f4cb468d7141488e14c (patch) | |
tree | 1bd40ab31a7d37d53477616dbf72f06f559d9e54 /lib/gen9_render.h | |
parent | 61370b2d43db63242646a6987a13caa8c2f8a0d8 (diff) |
lib/rendercopy: Use gen4 definitions if applicable
Instead of using definitions duplicated in gen7_render header,
we should use the oldest definition that is working with chosen
gen. This patch reuse gen6 definitons if registers/fields/shifts
that were introduced in other genX_render headers.
v3: Rebase and checkpatch
Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
Cc: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'lib/gen9_render.h')
-rw-r--r-- | lib/gen9_render.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gen9_render.h b/lib/gen9_render.h index 90f56053..77f4966c 100644 --- a/lib/gen9_render.h +++ b/lib/gen9_render.h @@ -3,7 +3,7 @@ #include "gen8_render.h" -#define GEN9_3DSTATE_COMPONENT_PACKING GEN6_3D(3, 0, 0x55) +#define GEN9_3DSTATE_COMPONENT_PACKING GEN4_3D(3, 0, 0x55) #define GEN9_SBE_ACTIVE_COMPONENT_NONE 0 #define GEN9_SBE_ACTIVE_COMPONENT_XY 1 @@ -11,6 +11,6 @@ #define GEN9_SBE_ACTIVE_COMPONENT_XYZW 3 #define GEN9_PIPELINE_SELECTION_MASK (3 << 8) -#define GEN9_PIPELINE_SELECT (GEN6_3D(1, 1, 4) | (3 << 8)) +#define GEN9_PIPELINE_SELECT (GEN4_3D(1, 1, 4) | (3 << 8)) #endif |