radeonsi: don't init screen state functions twice

`si_init_gfx_screen` already initializes screen state functions, so
avoid doing it twice. This was regressed by d1c57f742e.

Detected by LSan when applications using vaapi exit.

Fixes: d1c57f742e ("radeonsi/gfx: add si_gfx_screen.c")

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: llyyr <llyyr.public@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41442>
This commit is contained in:
llyyr 2026-05-08 18:41:32 +05:30 committed by Marge Bot
parent 3c2ac80048
commit e95626b62a

View file

@ -228,7 +228,6 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
si_init_screen_buffer_functions(sscreen);
si_init_screen_fence_functions(sscreen);
si_init_screen_state_functions(sscreen);
si_init_screen_texture_functions(sscreen);
si_init_screen_get_functions(sscreen);