diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-03-09 18:28:47 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-03-23 16:52:59 +0900 |
commit | 7f3d0780ca65a90117c2a61362dbc0899bd9c0b0 (patch) | |
tree | 11674b05095f2afb217926f6955627260c3b67db /src/radeon.h | |
parent | 3de480e83c0a1824838d662d6d67c9fe85277298 (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.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h index fe26df48..b9afd8ee 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -547,6 +547,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; + #ifdef USE_GLAMOR struct { CreateGCProcPtr SavedCreateGC; |