pvr: Don't rely on GNU void pointer arithmetic
authorMatt Coster <matt.coster@imgtec.com>
Wed, 20 Sep 2023 15:34:43 +0000 (16:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Sep 2023 15:25:32 +0000 (15:25 +0000)
commit140b3e1f8f08ebdc2c5e1bc4edcc5b5d835694ac
tree199e2660e33ec70021b460bc3da0d15080d1590e
parentb91616e80049d8de911cda06874d1d26255bafe8
pvr: Don't rely on GNU void pointer arithmetic

Besides being not standard C, one instance (in pvr_cmd_buffer.c) was a
bug caused by adding-then-casting, which would likely have been caught
if void pointer arithmetic were not allowed.

All instances detected by -Wpointer-arith have been fixed here.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25327>
src/imagination/common/pvr_dump.h
src/imagination/vulkan/pvr_cmd_buffer.c
src/imagination/vulkan/pvr_csb.c
src/imagination/vulkan/pvr_device.c
src/imagination/vulkan/pvr_dump_csb.c