drisw: Fix invalid pointer arithmetic

Use of void * in pointer arithmetic is illegal, use char * instead.
Fixes: cf54bd5e83 ("drisw: use shared memory when possible")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
This commit is contained in:
Jan Vesely 2018-06-07 17:24:59 -04:00
parent 03c370d2f1
commit d797f1f47e
1 changed files with 1 additions and 1 deletions

View File

@ -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'.
*