mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Fix condition for calling set_pixmap_bo in drmmode_xf86crtc_resize
This matches CreateScreenResources_KMS. Fixes crash when resizing the screen (e.g. using xrandr) with depth < 24. Bugzilla: https://bugs.freedesktop.org/104914 Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
05a1ba9abc
commit
aa572683d8
@@ -2881,8 +2881,7 @@ static Bool drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
|
||||
if (!amdgpu_glamor_create_screen_resources(scrn->pScreen))
|
||||
goto fail;
|
||||
|
||||
if (info->use_glamor ||
|
||||
(info->front_buffer->flags & AMDGPU_BO_FLAGS_GBM)) {
|
||||
if (info->use_glamor || info->dri2.enabled) {
|
||||
if (!amdgpu_set_pixmap_bo(ppix, info->front_buffer))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user