diff options
author | Michel Dänzer <mdaenzer@redhat.com> | 2020-04-22 16:47:33 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2020-05-27 15:41:22 +0000 |
commit | 442efe73dd579dc36445a3b232937abbed9d2fbb (patch) | |
tree | 0136ecf3b3fa591f5c6b5b6e1754498613aa5cfe /src/drmmode_display.h | |
parent | 99f3c82e940e35642757ccd6dc5267004e1122f6 (diff) |
Make drmmode_crtc_scanout_create/destroy static
And the latter inline.
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 8f132c3..b7d5401 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -234,6 +234,17 @@ drmmode_fb_reference_loc(int drm_fd, struct drmmode_fb **old, struct drmmode_fb drmmode_fb_reference_loc(fd, old, new, __func__, __LINE__) +static inline void +drmmode_crtc_scanout_destroy(PixmapPtr *scanout) +{ + if (!*scanout) + return; + + (*scanout)->drawable.pScreen->DestroyPixmap(*scanout); + (*scanout) = NULL; +} + + extern int drmmode_page_flip_target_absolute(AMDGPUEntPtr pAMDGPUEnt, drmmode_crtc_private_ptr drmmode_crtc, int fb_id, uint32_t flags, @@ -253,11 +264,7 @@ extern Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode, extern void drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode); extern Bool drmmode_setup_colormap(ScreenPtr pScreen, ScrnInfoPtr pScrn); -extern void drmmode_crtc_scanout_destroy(drmmode_ptr drmmode, - PixmapPtr *scanout); void drmmode_crtc_scanout_free(xf86CrtcPtr crtc); -PixmapPtr drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout, - int width, int height); extern void drmmode_uevent_init(ScrnInfoPtr scrn, drmmode_ptr drmmode); extern void drmmode_uevent_fini(ScrnInfoPtr scrn, drmmode_ptr drmmode); |