File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -6784,8 +6784,7 @@ enum {
6784
6784
6785
6785
#define _PLANE_BUF_CFG_1_B 0x7127c
6786
6786
#define _PLANE_BUF_CFG_2_B 0x7137c
6787
- #define SKL_DDB_ENTRY_MASK 0x3FF
6788
- #define ICL_DDB_ENTRY_MASK 0x7FF
6787
+ #define DDB_ENTRY_MASK 0x7FF /* skl+: 10 bits, icl+ 11 bits */
6789
6788
#define DDB_ENTRY_END_SHIFT 16
6790
6789
#define _PLANE_BUF_CFG_1 (pipe ) \
6791
6790
_PIPE(pipe, _PLANE_BUF_CFG_1_A, _PLANE_BUF_CFG_1_B)
Original file line number Diff line number Diff line change @@ -3927,14 +3927,9 @@ static unsigned int skl_cursor_allocation(int num_active)
3927
3927
static void skl_ddb_entry_init_from_hw (struct drm_i915_private * dev_priv ,
3928
3928
struct skl_ddb_entry * entry , u32 reg )
3929
3929
{
3930
- u16 mask ;
3931
3930
3932
- if (INTEL_GEN (dev_priv ) >= 11 )
3933
- mask = ICL_DDB_ENTRY_MASK ;
3934
- else
3935
- mask = SKL_DDB_ENTRY_MASK ;
3936
- entry -> start = reg & mask ;
3937
- entry -> end = (reg >> DDB_ENTRY_END_SHIFT ) & mask ;
3931
+ entry -> start = reg & DDB_ENTRY_MASK ;
3932
+ entry -> end = (reg >> DDB_ENTRY_END_SHIFT ) & DDB_ENTRY_MASK ;
3938
3933
3939
3934
if (entry -> end )
3940
3935
entry -> end += 1 ;
You can’t perform that action at this time.
0 commit comments