瀏覽代碼

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>
tags/18.2-branchpoint
Jan Vesely 7 年之前
父節點
當前提交
d797f1f47e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/winsys/sw/dri/dri_sw_winsys.c

+ 1
- 1
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'.
*

Loading…
取消
儲存