mesa/src/broadcom/simulator
Christopher Michael fa939898bb broadcom: fix issue of ‘addr’ is used uninitialized
This small patch fixes an issue where 'addr' is used uninitialized if
the assert gets removed due to compiling release code and thus
returning uninitialized 'addr'

v2: Modified based on initial review:
    a) No need to initialize the 'addr' and 'ret' variables
    b) Fix 'ret' variable to be proper type based on hw->get_mem return value

v3: Modified based on additional review:
    a) Since both the simulator and mesa have their own version of
'unreachable()' and we cannot use ASSERT for the 'ret' value here,
just use a (void) ret after the assert

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29434>
2024-05-30 20:40:26 +00:00
..
meson.build v3d,v3d: use new simulator 2024-03-11 10:23:48 +00:00
v3d_simulator.c broadcom/simulator: Add DRM_IOCTL_V3D_GET_COUNTER to simulator 2024-05-22 05:37:48 +00:00
v3d_simulator.h broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
v3d_simulator_wrapper.cpp broadcom: fix issue of ‘addr’ is used uninitialized 2024-05-30 20:40:26 +00:00
v3d_simulator_wrapper.h v3d,v3d: use new simulator 2024-03-11 10:23:48 +00:00
v3dx_simulator.c broadcom/simulator: Add DRM_IOCTL_V3D_GET_COUNTER to simulator 2024-05-22 05:37:48 +00:00
v3dx_simulator.h broadcom/simulator: Add DRM_IOCTL_V3D_GET_COUNTER to simulator 2024-05-22 05:37:48 +00:00