adapt to HAS_DIRTYTRACKING_DRAWABLE_SRC changes
PATCH 1/1 adapt to HAS_DIRTYTRACKING_DRAWABLE_SRC changes
Apparently it now wants a drawable.
Signed-off-by Ilia Mirkin <[email protected]>
---
No idea about whether this is correct. Saw the new warnings though.
src/drmmode_display.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
src/drmmode_display.c +14 -2
@@ -697,7 +697,13 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)int c, total_width =0 , max_height =0 , this_x =0 ;if (!ppix) {if (crtc->randr_crtc->scanout_pixmap) { -PixmapStopDirtyTracking (crtc->randr_crtc->scanout_pixmap, screenpix); + PixmapStopDirtyTracking( +#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC + &crtc->randr_crtc->scanout_pixmap->drawable, +#else + crtc->randr_crtc->scanout_pixmap, +#endif + screenpix);if (drmmode && drmmode->fb_id) {drmModeRmFB (drmmode->fd, drmmode->fb_id); drmmode->fb_id =0 ;
@@ -744,7 +750,13 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix) } drmmode_crtc->scanout_pixmap_x = this_x;#ifdef HAS_DIRTYTRACKING_ROTATION -PixmapStartDirtyTracking (ppix, screenpix,0 ,0 , this_x,0 , RR_Rotate_0); + PixmapStartDirtyTracking( +#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC + &ppix->drawable, +#else + ppix, +#endif + screenpix, 0, 0, this_x, 0, RR_Rotate_0);#elif defined(HAS_DIRTYTRACKING2 )PixmapStartDirtyTracking2 (ppix, screenpix,0 ,0 , this_x,0 );#else
Signature · 6 lines
2.19.2 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 20190120185151.5065-1-imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]
Probably needs more investigation. The relevant patch for amdgpu is
https://lists.x.org/archives/xorg-devel/2017-April/053439.html -- needs checking to see what this is all talking about.
Quoted 46 lines · Ilia Mirkin
Apparently it now wants a drawable.
Signed-off-by Ilia Mirkin <[email protected]>---
No idea about whether this is correct. Saw the new warnings though.
src/drmmode_display.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)src/drmmode_display.c +14
-3@@ -697,7 +697,13 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)int c, total_width =0 , max_height =0 , this_x =0 ;if (!ppix) {if (crtc->randr_crtc->scanout_pixmap) { -PixmapStopDirtyTracking (crtc->randr_crtc->scanout_pixmap, screenpix); + PixmapStopDirtyTracking( +#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC + &crtc->randr_crtc->scanout_pixmap->drawable, +#else + crtc->randr_crtc->scanout_pixmap, +#endif + screenpix);if (drmmode && drmmode->fb_id) {drmModeRmFB (drmmode->fd, drmmode->fb_id); drmmode->fb_id =0 ;@@ -744,7 +750,13 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix) } drmmode_crtc->scanout_pixmap_x = this_x;#ifdef HAS_DIRTYTRACKING_ROTATION -PixmapStartDirtyTracking (ppix, screenpix,0 ,0 , this_x,0 , RR_Rotate_0); + PixmapStartDirtyTracking( +#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC + &ppix->drawable, +#else + ppix, +#endif + screenpix, 0, 0, this_x, 0, RR_Rotate_0);#elif defined(HAS_DIRTYTRACKING2 )PixmapStartDirtyTracking2 (ppix, screenpix,0 ,0 , this_x,0 );#else --
Quoted 2 lines
2.19.2
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau