mesa/src/etnaviv/drm
Lucas Stach 196882a147 etnaviv: drm: fix check if BO is on a deferred destroy list
list_is_linked() isn't the right function to use in order to check if
the BO is on a cache bucket or the zombie list, as this checks if the
next pointer of the list isn't NULL. This is always the case with the
BO list item as it's always initialized, so the next pointer points to
the list head itself when the BO isn't on any list.

Use list_is_empty() to check if the BO is actually linked into one
of the deferred destroy lists.

Fixes: 1b1f8592c0 ("etnaviv: drm: properly handle reviving BOs via a lookup")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20940>
2023-01-28 13:48:30 +00:00
..
tests meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
etnaviv_bo.c etnaviv: drm: fix check if BO is on a deferred destroy list 2023-01-28 13:48:30 +00:00
etnaviv_bo_cache.c util/list: rename LIST_ENTRY() to list_entry() 2022-07-28 10:10:44 +00:00
etnaviv_cmd_stream.c etnaviv: drm: fix BO array leaks 2023-01-28 13:48:30 +00:00
etnaviv_device.c etnaviv: drm: rename etna_drm_table_lock 2022-07-03 17:41:55 +00:00
etnaviv_drmif.h etnaviv: fill all minor GPU features from the kernel 2022-04-27 09:10:27 +00:00
etnaviv_gpu.c etnaviv: fill all minor GPU features from the kernel 2022-04-27 09:10:27 +00:00
etnaviv_perfmon.c etnaviv: drm: Drop excessive debugging in perfmon 2019-06-05 08:58:05 +00:00
etnaviv_pipe.c etnaviv/drm: only print out fence error on non timeout 2021-03-29 11:54:59 +02:00
etnaviv_priv.h tree-wide: Use __func__ instead of __FUNCTION__ in non-gallium code 2022-11-22 06:53:46 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00