mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-04-14 11:04:42 +00:00
present: Don't check tiling parameters with DC & DRM minor version >= 31
Current DC handles any changes of tiling parameters for flips. v2: * Just check all tiling bits if DRM minor < 31 or DC is disabled. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
2798244be7
commit
a2b32e72fd
@@ -278,12 +278,18 @@ amdgpu_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
|
||||
return FALSE;
|
||||
#endif
|
||||
|
||||
/* The kernel driver doesn't handle flipping between BOs with different
|
||||
* tiling parameters correctly yet
|
||||
/* Only DC supports advanced color management features, so we can use
|
||||
* drmmode_cm_enabled as a proxy for "Is DC enabled?"
|
||||
*/
|
||||
if (amdgpu_pixmap_get_tiling_info(pixmap) !=
|
||||
amdgpu_pixmap_get_tiling_info(screen_pixmap))
|
||||
return FALSE;
|
||||
if (info->dri2.pKernelDRMVersion->version_minor < 31 ||
|
||||
!drmmode_cm_enabled(&info->drmmode)) {
|
||||
/* The kernel driver doesn't handle flipping between BOs with
|
||||
* different tiling parameters correctly
|
||||
*/
|
||||
if (amdgpu_pixmap_get_tiling_info(pixmap) !=
|
||||
amdgpu_pixmap_get_tiling_info(screen_pixmap))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for (i = 0, num_crtcs_on = 0; i < config->num_crtc; i++) {
|
||||
if (drmmode_crtc_can_flip(config->crtc[i]))
|
||||
|
||||
Reference in New Issue
Block a user