diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-09-09 17:51:34 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-05-17 23:00:15 +0300 |
commit | 9483ba94f8afb62035a553fd52c2c6323ce9216d (patch) | |
tree | dd340822c693c68098c16c88c2f81924bc11183b /tools | |
parent | 5c5734d8ee1afac871b69c4554ff14e9b56100e4 (diff) |
tools/intel_display_poller: Fix TILEOFF vs. LINOFF for skl+
skl+ (like hsw/bdw) always use the TILEOFF register, and never
the LINOFF register. Let's respect that.
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_display_poller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/intel_display_poller.c b/tools/intel_display_poller.c index f4797a20..15da8e76 100644 --- a/tools/intel_display_poller.c +++ b/tools/intel_display_poller.c @@ -128,9 +128,9 @@ static uint32_t dspoffset_reg(uint32_t devid, int pipe) bool use_tileoff; int plane = pipe_to_plane(devid, pipe); - if (IS_GEN2(devid) || IS_GEN3(devid)) + if (intel_gen(devid) < 4) use_tileoff = false; - else if (IS_HASWELL(devid) || IS_BROADWELL(devid)) + else if (IS_HASWELL(devid) || IS_BROADWELL(devid) || intel_gen(devid) >= 9) use_tileoff = true; else use_tileoff = read_reg(PIPE_REG(plane, DSPACNTR)) & DISPLAY_PLANE_TILED; |