summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagespan.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2005-04-21 21:50:54 +0000
committerFelix Kuehling <[email protected]>2005-04-21 21:50:54 +0000
commita7fcac5e9252101610b3b48a019a36527096ca9b (patch)
treea6784e9430953cc96714d3603cf46618898d0739 /src/mesa/drivers/dri/savage/savagespan.c
parent07d91bbb59e42abb9c5c6d84c850d004db1d964c (diff)
Fixed some suspicious pointer casts that caused lots of
compile-time-warnings on x86-64. Not tested on x86-64 yet, but a good thing in general, so I'm giving up waiting for feedback. See also https://bugs.freedesktop.org/show_bug.cgi?id=2924.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagespan.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagespan.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/savage/savagespan.c b/src/mesa/drivers/dri/savage/savagespan.c
index 8af0384b445..4fad537ba62 100644
--- a/src/mesa/drivers/dri/savage/savagespan.c
+++ b/src/mesa/drivers/dri/savage/savagespan.c
@@ -39,9 +39,9 @@
GLuint cpp = savageScreen->cpp; \
GLuint pitch = imesa->aperturePitch; \
GLuint height = dPriv->h; \
- char *buf = (char *)(map + \
- dPriv->x * cpp + \
- dPriv->y * pitch); \
+ GLubyte *buf = map + \
+ dPriv->x * cpp + \
+ dPriv->y * pitch; \
GLuint p; \
(void) p
@@ -52,9 +52,9 @@
GLuint zpp = savageScreen->zpp; \
GLuint pitch = imesa->aperturePitch; \
GLuint height = dPriv->h; \
- char *buf = (char *)(imesa->apertureBase[TARGET_DEPTH] + \
- dPriv->x * zpp + \
- dPriv->y * pitch)
+ GLubyte *buf = imesa->apertureBase[TARGET_DEPTH] + \
+ dPriv->x * zpp + \
+ dPriv->y * pitch
#define LOCAL_STENCIL_VARS LOCAL_DEPTH_VARS
@@ -80,11 +80,11 @@
#define HW_WRITE_LOCK() \
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
- char *map = imesa->drawMap;
+ GLubyte *map = imesa->drawMap;
#define HW_READ_LOCK() \
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
- char *map = imesa->readMap;
+ GLubyte *map = imesa->readMap;
#define HW_CLIPLOOP() \
do { \
@@ -233,8 +233,8 @@ static void savageDDSetBuffer(GLcontext *ctx, GLframebuffer *buffer,
assert((bufferBit == DD_FRONT_LEFT_BIT) || (bufferBit == DD_BACK_LEFT_BIT));
map = (bufferBit == DD_FRONT_LEFT_BIT)
- ? (char*)imesa->apertureBase[TARGET_FRONT]
- : (char*)imesa->apertureBase[TARGET_BACK];
+ ? imesa->apertureBase[TARGET_FRONT]
+ : imesa->apertureBase[TARGET_BACK];
imesa->drawMap = map;
imesa->readMap = map;