diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index 2e6bc6d..2c09204 100644 --- a/src/amdgpu_bo_helper.c +++ b/src/amdgpu_bo_helper.c @@ -202,7 +202,7 @@ Bool amdgpu_pixmap_get_handle(PixmapPtr pixmap, uint32_t *handle) if (priv->handle_valid) goto success; - + #ifdef USE_GLAMOR if (info->use_glamor) { AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(scrn); diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 3b104df..3e395d9 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -342,7 +342,7 @@ amdgpu_event_callback(CallbackListPtr *list, */ client_priv->needs_flush = info->gpu_flushed; server_priv->needs_flush = info->gpu_flushed; - + for (i = 0; i < eventinfo->count; i++) { if (eventinfo->events[i].u.u.type == info->callback_event_type) { client_priv->needs_flush++; @@ -849,7 +849,7 @@ amdgpu_prime_scanout_flip(PixmapDirtyUpdatePtr ent) "Failed to get FB for PRIME flip.\n"); return; } - + drm_queue_seq = amdgpu_drm_queue_alloc(crtc, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT, AMDGPU_DRM_QUEUE_ID_DEFAULT, fb, diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 885b1e6..19b1f1d 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -501,7 +501,7 @@ drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout, if (!amdgpu_pixmap_get_fb(*scanout)) { ErrorF("failed to create CRTC scanout FB\n"); -error: +error: drmmode_crtc_scanout_destroy(scanout); return FALSE; } @@ -649,7 +649,7 @@ drmmode_crtc_prime_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode, *x = *y = 0; drmmode_crtc->scanout_id = scanout_id; } - + static void drmmode_crtc_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode, @@ -3451,7 +3451,7 @@ miPointerSpriteFuncRec drmmode_sprite_funcs = { .DeviceCursorCleanup = drmmode_sprite_device_cursor_cleanup, }; - + void drmmode_adjust_frame(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int x, int y) { xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);