util: use void * instead of byte * for util_copy_rect in u_format.h
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 7 Nov 2022 06:12:11 +0000 (14:12 +0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Nov 2022 01:37:46 +0000 (01:37 +0000)
commitb728bed56719a2edcc3d50b12ce8d2ce1d5abe18
treee4532aedc3a1a1da24ba30e9bf64559521a5f19a
parent2f42ffcd028d2c53cf7feaf69067f2664fc5b2bb
util: use void * instead of byte * for util_copy_rect in u_format.h

As ubyte comes from p_compiler.h,  so do not use it,
and the code calles util_copy_rect may use args with type uint8_t*, ubyte* or unsigned char*,
so use the type void* that consistence with memcpy

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19676>
src/util/format/u_format.c
src/util/format/u_format.h