OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c370d
)
drisw: Fix invalid pointer arithmetic
author
Jan Vesely
<jan.vesely@rutgers.edu>
Thu, 7 Jun 2018 21:24:59 +0000
(17:24 -0400)
committer
Jan Vesely
<jan.vesely@rutgers.edu>
Fri, 8 Jun 2018 01:01:29 +0000
(21:01 -0400)
Use of void * in pointer arithmetic is illegal, use char * instead.
Fixes:
cf54bd5e8381dba18d52fe438acda20cc1685bf3
("drisw: use shared memory when possible")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/winsys/sw/dri/dri_sw_winsys.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/sw/dri/dri_sw_winsys.c
b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
index
8335e52
..
4000720
100644
(file)
--- 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'.
*