Re: [Mesa-dev] [PATCH 1/1] drisw: Fix invalid pointer arithmetic
On 8 June 2018 at 00:59, Jan Vesely wrote: > Use of void * in pointer arithmetic is illegal, use char * instead. > Fixes: cf54bd5e8381dba18d52fe438acda20cc1685bf3 ("drisw: use shared memory > when possible") > Thanks this should get the travis build back to green. Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH 1/1] drisw: Fix invalid pointer arithmetic
On Fri, Jun 8, 2018 at 9:59 AM, Jan Vesely wrote: > Use of void * in pointer arithmetic is illegal, use char * instead. > Fixes: cf54bd5e8381dba18d52fe438acda20cc1685bf3 ("drisw: use shared > memory when possible") > > Signed-off-by: Jan Vesely > Reviewed-by: Dave Airlie ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH 1/1] drisw: Fix invalid pointer arithmetic
Use of void * in pointer arithmetic is illegal, use char * instead. Fixes: cf54bd5e8381dba18d52fe438acda20cc1685bf3 ("drisw: use shared memory when possible") Signed-off-by: Jan Vesely --- src/gallium/winsys/sw/dri/dri_sw_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c index 8335e52200..40007200a5 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'. * -- 2.17.1 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev