diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-08-06 17:37:11 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-08-07 11:03:55 +0900 |
commit | 15050aabf256c17250d1fca0bfac97fc6707b195 (patch) | |
tree | 946b7b368ade642e16b47111f27bd5e4a5b3d5b4 /src/drmmode_display.h | |
parent | 96b5364496222f1b3afb9caad458f16f156b6c47 (diff) |
Defer initial modeset until the first BlockHandler invocation
This ensures that the screen pixmap contents have been initialized when
the initial modes are set.
(Ported from radeon commits 673e1c7637687c74fc9bdeeeffb7ace0d04b734f and
1584dc545c78e0bce8d4b4b9f26b568e2c211453)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 197e46a..f029998 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -122,7 +122,8 @@ extern void drmmode_fini(ScrnInfoPtr pScrn, drmmode_ptr drmmode); extern void drmmode_set_cursor(ScrnInfoPtr scrn, drmmode_ptr drmmode, int id, struct amdgpu_buffer *bo); void drmmode_adjust_frame(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int x, int y); -extern Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode); +extern Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode, + Bool set_hw); #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 10 extern void drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode); #endif |