diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-03-24 18:45:46 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-03-25 10:37:17 +0900 |
commit | a3dfce7b24e1ea01c1aa62926025a545312cbe13 (patch) | |
tree | 2463213381106a294ec3bad0552d31067b8d04a2 /src/amdgpu_drv.h | |
parent | ba9be8f32f0321689133e17c1681809dec8c6cf1 (diff) |
Don't try DRI2/Present flipping while the HW cursor can't be used
Flipping doesn't interact correctly with SW cursor: A flip makes the SW
cursor disappear. It will only appear again when the cursor is moved,
but it will be surrounded by corruption, because the SW cursor code
will restore stale screen contents at the old cursor location before
drawing the cursor at the new location.
(Ported from radeon commit 7f3d0780ca65a90117c2a61362dbc0899bd9c0b0)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_drv.h')
-rw-r--r-- | src/amdgpu_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h index 3b074fc..60aa0be 100644 --- a/src/amdgpu_drv.h +++ b/src/amdgpu_drv.h @@ -248,6 +248,11 @@ typedef struct { int cursor_w; int cursor_h; + /* If bit n of this field is set, xf86_config->crtc[n] currently can't + * use the HW cursor + */ + unsigned hwcursor_disabled; + struct { CreateGCProcPtr SavedCreateGC; RegionPtr (*SavedCopyArea)(DrawablePtr, DrawablePtr, GCPtr, |