summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-25 15:10:35 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-25 15:10:35 +0000
commit84dd9c811262219e9df86a8c105e8074c1a9447d (patch)
tree041a83ab693537adf237c624524cb479aef623e6
parentbba85343e7b435e1338213a3a5bea18bdbb6996b (diff)
silence several -pedantic warnings
-rw-r--r--src/mesa/drivers/dri/i915/intel_bufmgr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_bufmgr.c b/src/mesa/drivers/dri/i915/intel_bufmgr.c
index 167e555603..46631555dc 100644
--- a/src/mesa/drivers/dri/i915/intel_bufmgr.c
+++ b/src/mesa/drivers/dri/i915/intel_bufmgr.c
@@ -254,7 +254,8 @@ bmBufferSubData(struct bufmgr *bm,
drmBufWaitBusy(bm->driFd, buf);
if (size) {
- memcpy(drmMMMapBuffer(bm->driFd, buf) + offset, data, size);
+ memcpy((unsigned char *) drmMMMapBuffer(bm->driFd, buf) + offset,
+ data, size);
drmMMUnmapBuffer(bm->driFd, buf);
}
}
@@ -278,7 +279,9 @@ bmBufferGetSubData(struct bufmgr *bm,
drmBufWaitBusy(bm->driFd, buf);
if (size) {
- memcpy(data, drmMMMapBuffer(bm->driFd, buf) + offset, size);
+ memcpy(data,
+ (unsigned char *) drmMMMapBuffer(bm->driFd, buf) + offset,
+ size);
drmMMUnmapBuffer(bm->driFd, buf);
}
}
@@ -422,9 +425,11 @@ bmSetFence(struct bufmgr *bm)
int
bmTestFence(struct bufmgr *bm, unsigned fence)
{
- drmFence dFence = { 0, fence };
+ drmFence dFence;
int retired;
+ dFence.fenceType = 0;
+ dFence.fenceSeq = fence;
BM_CKFATAL(drmTestFence(bm->driFd, dFence, 0, &retired));
return retired;
}
@@ -432,6 +437,8 @@ bmTestFence(struct bufmgr *bm, unsigned fence)
void
bmFinishFence(struct bufmgr *bm, unsigned fence)
{
- drmFence dFence = { 0, fence };
+ drmFence dFence;
+ dFence.fenceType = 0;
+ dFence.fenceSeq = fence;
BM_CKFATAL(drmWaitFence(bm->driFd, dFence));
}