mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
Fix DRM type names.
This code used the old style names (e.g., drmHandle). This patches the code to use the new style names (e.g., drm_handle_t).
This commit is contained in:
@@ -53,9 +53,9 @@ static char XGIClientDriverName[] = "xgi";
|
||||
|
||||
static Bool XGIInitVisualConfigs(ScreenPtr pScreen);
|
||||
static Bool XGICreateContext(ScreenPtr pScreen, VisualPtr visual,
|
||||
drmContext hwContext, void *pVisualConfigPriv,
|
||||
drm_context_t hwContext, void *pVisualConfigPriv,
|
||||
DRIContextType contextStore);
|
||||
static void XGIDestroyContext(ScreenPtr pScreen, drmContext hwContext,
|
||||
static void XGIDestroyContext(ScreenPtr pScreen, drm_context_t hwContext,
|
||||
DRIContextType contextStore);
|
||||
static void XGIDRISwapContext(ScreenPtr pScreen, DRISyncType syncType,
|
||||
DRIContextType readContextType,
|
||||
@@ -297,7 +297,7 @@ Bool XGIDRIScreenInit(ScreenPtr pScreen)
|
||||
|
||||
pXGIDRI->regs.size = XGIIOMAPSIZE;
|
||||
pXGIDRI->regs.map = 0;
|
||||
if (drmAddMap(pXGI->drmSubFD, (drmHandle)pXGI->IOAddress,
|
||||
if (drmAddMap(pXGI->drmSubFD, (drm_handle_t)pXGI->IOAddress,
|
||||
pXGIDRI->regs.size, DRM_REGISTERS, 0,
|
||||
&pXGIDRI->regs.handle)<0)
|
||||
{
|
||||
@@ -368,7 +368,7 @@ Bool XGIDRIScreenInit(ScreenPtr pScreen)
|
||||
/* by mem-map pXGIDRI->agp.handle */
|
||||
/**********************************************/
|
||||
pXGIDRI->agp.size = pXGI->agpSize;
|
||||
if (drmAddMap(pXGI->drmSubFD, (drmHandle)0,
|
||||
if (drmAddMap(pXGI->drmSubFD, (drm_handle_t)0,
|
||||
pXGIDRI->agp.size, DRM_AGP, 0,
|
||||
&pXGIDRI->agp.handle) < 0) {
|
||||
xf86DrvMsg(pScreen->myNum, X_ERROR,
|
||||
@@ -469,14 +469,14 @@ XGIDRICloseScreen(ScreenPtr pScreen)
|
||||
*/
|
||||
static Bool
|
||||
XGICreateContext(ScreenPtr pScreen, VisualPtr visual,
|
||||
drmContext hwContext, void *pVisualConfigPriv,
|
||||
drm_context_t hwContext, void *pVisualConfigPriv,
|
||||
DRIContextType contextStore)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
XGIDestroyContext(ScreenPtr pScreen, drmContext hwContext,
|
||||
XGIDestroyContext(ScreenPtr pScreen, drm_context_t hwContext,
|
||||
DRIContextType contextStore)
|
||||
{
|
||||
}
|
||||
@@ -643,4 +643,4 @@ ULONG CheckAGPSlot(ScreenPtr pScreen, ULONG uNextLink)
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[%s] This Card Type is PCIExpress\n", __FUNCTION__);
|
||||
|
||||
return uType;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ typedef struct {
|
||||
#define XGI_DEPTH 2
|
||||
|
||||
typedef struct {
|
||||
drmHandle handle;
|
||||
drm_handle_t handle;
|
||||
drmSize size;
|
||||
drmAddress map;
|
||||
} xgiRegion, *xgiRegionPtr;
|
||||
|
||||
Reference in New Issue
Block a user