mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
replace BLOCKHANDLER_ARGS_DECL and BLOCKHANDLER_ARGS
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -208,7 +208,7 @@ typedef struct {
|
||||
|
||||
Bool(*CloseScreen) (ScreenPtr pScreen);
|
||||
|
||||
void (*BlockHandler) (BLOCKHANDLER_ARGS_DECL);
|
||||
void (*BlockHandler) (ScreenPtr pScreen, void* pTimeout);
|
||||
|
||||
void (*CreateFence) (ScreenPtr pScreen, struct _SyncFence *pFence,
|
||||
Bool initially_triggered);
|
||||
|
||||
@@ -1195,7 +1195,7 @@ amdgpu_scanout_flip(ScreenPtr pScreen, AMDGPUInfoPtr info,
|
||||
drmmode_fb_reference(pAMDGPUEnt->fd, &drmmode_crtc->flip_pending, fb);
|
||||
}
|
||||
|
||||
static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
|
||||
static void AMDGPUBlockHandler_KMS(ScreenPtr pScreen, void* pTimeout)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
AMDGPUInfoPtr info = AMDGPUPTR(pScrn);
|
||||
@@ -1203,7 +1203,7 @@ static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
|
||||
int c;
|
||||
|
||||
pScreen->BlockHandler = info->BlockHandler;
|
||||
(*pScreen->BlockHandler) (BLOCKHANDLER_ARGS);
|
||||
pScreen->BlockHandler(pScreen, pTimeout);
|
||||
pScreen->BlockHandler = AMDGPUBlockHandler_KMS;
|
||||
|
||||
if (!xf86ScreenToScrn(amdgpu_primary_screen(pScreen))->vtSema)
|
||||
|
||||
@@ -26,7 +26,4 @@
|
||||
#ifndef COMPAT_API_H
|
||||
#define COMPAT_API_H
|
||||
|
||||
#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, void* pTimeout
|
||||
#define BLOCKHANDLER_ARGS pScreen, pTimeout
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user