v3dv/cmd_buffer: missing (uint8_t *) casting when calling memcmp
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 19 Nov 2020 22:45:57 +0000 (23:45 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 23 Nov 2020 08:51:24 +0000 (09:51 +0100)
commitce5c23eb009b1453347e87099a4dfc72d4c8c793
treea9bedcbc487d00df84153ea9dd44a07296715433
parent14ec91b1319254c5ee608fa0d6c0110439c29d7b
v3dv/cmd_buffer: missing (uint8_t *) casting when calling memcmp

Caused to return early wrongly on CmdPushConstants with some tests
using several calls to that method. As we are here we are also
replacing the (void *) casting at the memcpy below.

Fixes: e1c8041cde64 ("v3dv: try harder to skip emission of redundant state")

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7718>
src/broadcom/vulkan/v3dv_cmd_buffer.c