trace: copy pipe_caps

Otherwise they are all 0 and frontends might be misbehaving a lot.

Fixes: a036231c09 ("gallium: add u_init_pipe_screen_caps")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33119>
This commit is contained in:
Karol Herbst
2025-01-20 09:54:20 +01:00
committed by Marge Bot
parent 48d0a0322f
commit f77fea3ba8
@@ -1565,6 +1565,9 @@ trace_screen_create(struct pipe_screen *screen)
tr_scr->trace_tc = debug_get_bool_option("GALLIUM_TRACE_TC", false);
/* copy all caps */
*(struct pipe_caps *)&tr_scr->base.caps = screen->caps;
return &tr_scr->base;
error2: