diff options
author | Dave Airlie <airliedfreedesktop.org> | 2005-03-05 06:38:59 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2005-03-05 06:38:59 +0000 |
commit | 07561c6b32d55128222283a7450c65c95d21df59 (patch) | |
tree | 10cbb0da65bb26d71c5e2731efff465f1f685714 /src/mesa/drivers/dri/mga | |
parent | a4296239d41101ec778ef6cf998847d341433b72 (diff) |
Fixing memset on ia64 & other archs
From: Stephane Marchesin
Diffstat (limited to 'src/mesa/drivers/dri/mga')
-rw-r--r-- | src/mesa/drivers/dri/mga/server/mga_dri.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/mga/server/mga_dri.c b/src/mesa/drivers/dri/mga/server/mga_dri.c index 958252b3e47..35e28fec4b1 100644 --- a/src/mesa/drivers/dri/mga/server/mga_dri.c +++ b/src/mesa/drivers/dri/mga/server/mga_dri.c @@ -36,6 +36,7 @@ #include "driver.h" #include "drm.h" +#include "memops.h" #include "mga_reg.h" #include "mga.h" @@ -805,11 +806,11 @@ static int MGAScreenInit( struct DRIDriverContextRec *ctx, MGAPtr pMga ) * the clear ioctl to do this, but would need to setup hw state * first. */ - memset((char *)ctx->FBAddress + pMga->frontOffset, + drimemsetio((char *)ctx->FBAddress + pMga->frontOffset, 0, pMga->frontPitch * ctx->shared.virtualHeight ); - memset((char *)ctx->FBAddress + pMga->backOffset, + drimemsetio((char *)ctx->FBAddress + pMga->backOffset, 0, pMga->backPitch * ctx->shared.virtualHeight ); |