summaryrefslogtreecommitdiff
path: root/src/i810_hwmc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-04-05 07:12:00 +0000
committerDave Airlie <airlied@linux.ie>2006-04-05 07:12:00 +0000
commit35e4756645891bfc85f25f1ab60c287eba9ef749 (patch)
tree1439ec1e9217bca3368397f4f7c704bfde0d7706 /src/i810_hwmc.c
parent6e5f9b026372eea295c390b18fc41f7018e0e797 (diff)
Fix some argument inversions in xf86DrvMsg function calls
Diffstat (limited to 'src/i810_hwmc.c')
-rw-r--r--src/i810_hwmc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/i810_hwmc.c b/src/i810_hwmc.c
index 36d80880..b952d8d3 100644
--- a/src/i810_hwmc.c
+++ b/src/i810_hwmc.c
@@ -246,14 +246,14 @@ int I810XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext,
if(!pI810->directRenderingEnabled) {
- xf86DrvMsg(X_ERROR, pScrn->scrnIndex,
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"I810XvMCCreateContext: Cannot use XvMC without DRI!\n");
return BadAlloc;
}
/* Context Already in use! */
if(pI810->xvmcContext) {
- xf86DrvMsg(X_WARNING, pScrn->scrnIndex,
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"I810XvMCCreateContext: 2 XvMC Contexts Attempted, not supported.\n");
return BadAlloc;
}
@@ -268,7 +268,7 @@ int I810XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext,
*num_priv = sizeof(I810XvMCCreateContextRec) >> 2;
if(drmCreateContext(pI810->drmSubFD, &(contextRec->drmcontext) ) < 0) {
- xf86DrvMsg(X_ERROR, pScrn->scrnIndex,
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"I810XvMCCreateContext: Unable to create DRMContext!\n");
xfree(*priv);
return BadAlloc;
@@ -300,7 +300,7 @@ int I810XvMCCreateSurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf,
*priv = (long *)xcalloc(2,sizeof(long));
if(!*priv) {
- xf86DrvMsg(X_ERROR, pScrn->scrnIndex,
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"I810XvMCCreateSurface: Unable to allocate memory!\n");
*num_priv = 0;
return BadAlloc;
@@ -346,7 +346,7 @@ int I810XvMCCreateSubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp,
*priv = (long *)xcalloc(1,sizeof(long));
if(!*priv) {
- xf86DrvMsg(X_ERROR, pScrn->scrnIndex,
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"I810XvMCCreateSubpicture: Unable to allocate memory!\n");
*num_priv = 0;
return BadAlloc;