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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user