diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-10-27 07:54:31 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-12-07 00:08:30 +0100 |
commit | 6b16cf7785a4200b1bddf4f70c9dda2efc49e278 (patch) | |
tree | 49583bd779933e6a2774e021da8520e75f1f8a91 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values (diff) | |
download | linux-6b16cf7785a4200b1bddf4f70c9dda2efc49e278.tar.xz linux-6b16cf7785a4200b1bddf4f70c9dda2efc49e278.zip |
drm/radeon: Hide the HW cursor while it's out of bounds
Fixes hangs in that case under some circumstances.
v2:
* Only use non-0 x/yorigin if the cursor is (partially) outside of the
top/left edge of the total surface with AVIVO/DCE
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1000433
Cc: stable@vger.kernel.org
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index bb75201a24ba..f1da484864a9 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -330,6 +330,7 @@ struct radeon_crtc { u16 lut_r[256], lut_g[256], lut_b[256]; bool enabled; bool can_tile; + bool cursor_out_of_bounds; uint32_t crtc_offset; struct drm_gem_object *cursor_bo; uint64_t cursor_addr; |