summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/sw
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2018-06-07 17:24:59 -0400
committerJan Vesely <[email protected]>2018-06-07 21:01:29 -0400
commitd797f1f47efd389ce656fa60fa51687c7c58daa4 (patch)
tree7328e01ca89a01bc49827ba477a9282b04cb0dc2 /src/gallium/winsys/sw
parent03c370d2f164847abad88c1af7c159db23014947 (diff)
drisw: Fix invalid pointer arithmetic
Use of void * in pointer arithmetic is illegal, use char * instead. Fixes: cf54bd5e8381dba18d52fe438acda20cc1685bf3 ("drisw: use shared memory when possible") Reviewed-by: Dave Airlie <[email protected]> Signed-off-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/winsys/sw')
-rw-r--r--src/gallium/winsys/sw/dri/dri_sw_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
index 8335e52200f..40007200a5d 100644
--- a/src/gallium/winsys/sw/dri/dri_sw_winsys.c
+++ b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
@@ -233,7 +233,7 @@ dri_sw_displaytarget_display(struct sw_winsys *ws,
unsigned width, height, x = 0, y = 0;
unsigned blsize = util_format_get_blocksize(dri_sw_dt->format);
unsigned offset = 0;
- void *data = dri_sw_dt->data;
+ char *data = dri_sw_dt->data;
/* Set the width to 'stride / cpp'.
*