Merge branch 'master' into modesetting
Conflicts: src/i830.h
This commit is contained in:
commit
21dc3edfc4
16
configure.ac
16
configure.ac
|
|
@ -39,10 +39,6 @@ AC_DISABLE_STATIC
|
|||
AC_PROG_LIBTOOL
|
||||
AC_PROG_CC
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
|
||||
AH_TOP([#include "xorg-server.h"])
|
||||
|
||||
AC_ARG_WITH(xorg-module-dir,
|
||||
|
|
@ -93,6 +89,18 @@ if test x$DRI = xauto; then
|
|||
fi
|
||||
AC_MSG_RESULT([$DRI])
|
||||
|
||||
dnl Use lots of warning flags with GCC
|
||||
|
||||
WARN_CFLAGS=""
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wmissing-declarations \
|
||||
-Wnested-externs -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
CFLAGS="$CFLAGS $WARN_CFLAGS"
|
||||
|
||||
AM_CONDITIONAL(DRI, test x$DRI = xyes)
|
||||
if test "$DRI" = yes; then
|
||||
PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
|
||||
|
|
|
|||
|
|
@ -492,7 +492,7 @@ I810DRIScreenInit(ScreenPtr pScreen)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n",
|
||||
pI810DRI->regs);
|
||||
(int)pI810DRI->regs);
|
||||
|
||||
pI810->backHandle = DRM_AGP_NO_HANDLE;
|
||||
pI810->zHandle = DRM_AGP_NO_HANDLE;
|
||||
|
|
@ -532,7 +532,7 @@ I810DRIScreenInit(ScreenPtr pScreen)
|
|||
pI810->dcacheHandle = dcacheHandle;
|
||||
|
||||
xf86DrvMsg(pScreen->myNum, X_INFO, "[agp] dcacheHandle : 0x%x\n",
|
||||
dcacheHandle);
|
||||
(int)dcacheHandle);
|
||||
|
||||
#define Elements(x) sizeof(x)/sizeof(*x)
|
||||
for (pitch_idx = 0; pitch_idx < Elements(i810_pitches); pitch_idx++)
|
||||
|
|
|
|||
21
src/i830.h
21
src/i830.h
|
|
@ -587,21 +587,26 @@ extern void I830PrintModes(ScrnInfoPtr pScrn);
|
|||
extern Bool I830CheckModeSupport(ScrnInfoPtr pScrn, int x, int y, int mode);
|
||||
extern Bool I830Rotate(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
||||
extern Bool I830FixOffset(ScrnInfoPtr pScrn, I830MemRange *mem);
|
||||
extern Bool I830BindAGPMemory(ScrnInfoPtr pScrn);
|
||||
extern Bool I830UnbindAGPMemory(ScrnInfoPtr pScrn);
|
||||
extern Bool I830RandRSetConfig(ScreenPtr pScreen, Rotation rotation,
|
||||
int rate, RRScreenSizePtr pSize);
|
||||
extern Rotation I830GetRotation(ScreenPtr pScreen);
|
||||
extern Bool I830RandRInit(ScreenPtr pScreen, int rotation);
|
||||
extern Bool I830I2CInit(ScrnInfoPtr pScrn, I2CBusPtr *bus_ptr, int i2c_reg,
|
||||
char *name);
|
||||
/* i830_modes.c */
|
||||
int I830ValidateXF86ModeList(ScrnInfoPtr pScrn, Bool first_time);
|
||||
|
||||
/* i830_memory.c */
|
||||
Bool I830BindAGPMemory(ScrnInfoPtr pScrn);
|
||||
Bool I830UnbindAGPMemory(ScrnInfoPtr pScrn);
|
||||
|
||||
/* i830_gtf.c */
|
||||
DisplayModePtr i830GetGTF(int h_pixels, int v_lines, float freq,
|
||||
int interlaced, int margins);
|
||||
|
||||
/* i830_modes.c */
|
||||
int I830ValidateXF86ModeList(ScrnInfoPtr pScrn, Bool first_time);
|
||||
|
||||
/* i830_randr.c */
|
||||
Bool I830RandRInit(ScreenPtr pScreen, int rotation);
|
||||
Bool I830RandRSetConfig(ScreenPtr pScreen, Rotation rotation, int rate,
|
||||
RRScreenSizePtr pSize);
|
||||
Rotation I830GetRotation(ScreenPtr pScreen);
|
||||
|
||||
/*
|
||||
* 12288 is set as the maximum, chosen because it is enough for
|
||||
* 1920x1440@32bpp with a 2048 pixel line pitch with some to spare.
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ I830DRIScreenInit(ScreenPtr pScreen)
|
|||
pDRIInfo->ddxDriverMinorVersion = I830_MINOR_VERSION;
|
||||
pDRIInfo->ddxDriverPatchVersion = I830_PATCHLEVEL;
|
||||
#if 1 /* temporary until this gets removed from the libdri layer */
|
||||
pDRIInfo->frameBufferPhysicalAddress = (pointer) pI830->LinearAddr +
|
||||
pDRIInfo->frameBufferPhysicalAddress = (char *) pI830->LinearAddr +
|
||||
pI830->FrontBuffer.Start;
|
||||
pDRIInfo->frameBufferSize = ROUND_TO_PAGE(pScrn->displayWidth *
|
||||
pScrn->virtualY * pI830->cpp);
|
||||
|
|
@ -637,7 +637,7 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Front Buffer = 0x%08x\n",
|
||||
sarea->front_handle);
|
||||
(int)sarea->front_handle);
|
||||
|
||||
if (drmAddMap(pI830->drmSubFD,
|
||||
(drm_handle_t)(sarea->back_offset + pI830->LinearAddr),
|
||||
|
|
@ -649,7 +649,7 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Back Buffer = 0x%08x\n",
|
||||
sarea->back_handle);
|
||||
(int)sarea->back_handle);
|
||||
|
||||
if (drmAddMap(pI830->drmSubFD,
|
||||
(drm_handle_t)sarea->depth_offset + pI830->LinearAddr,
|
||||
|
|
@ -661,7 +661,7 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Depth Buffer = 0x%08x\n",
|
||||
sarea->depth_handle);
|
||||
(int)sarea->depth_handle);
|
||||
|
||||
if (drmAddMap(pI830->drmSubFD,
|
||||
(drm_handle_t)sarea->tex_offset + pI830->LinearAddr,
|
||||
|
|
@ -673,7 +673,7 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] textures = 0x%08x\n",
|
||||
sarea->tex_handle);
|
||||
(int)sarea->tex_handle);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -748,7 +748,7 @@ I830DRIDoMappings(ScreenPtr pScreen)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n",
|
||||
pI830DRI->regs);
|
||||
(int)pI830DRI->regs);
|
||||
|
||||
if (drmAddMap(pI830->drmSubFD,
|
||||
(drm_handle_t)pI830->LpRing->mem.Start + pI830->LinearAddr,
|
||||
|
|
@ -760,7 +760,7 @@ I830DRIDoMappings(ScreenPtr pScreen)
|
|||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] ring buffer = 0x%08x\n",
|
||||
pI830->ring_map);
|
||||
(int)pI830->ring_map);
|
||||
|
||||
if (!I830InitDma(pScrn)) {
|
||||
DRICloseScreen(pScreen);
|
||||
|
|
|
|||
Loading…
Reference in New Issue