From f77fea3ba85c1417c153750ad78359f51578fa19 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 20 Jan 2025 09:54:20 +0100 Subject: [PATCH] trace: copy pipe_caps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise they are all 0 and frontends might be misbehaving a lot. Fixes: a036231c096 ("gallium: add u_init_pipe_screen_caps") Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/driver_trace/tr_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/driver_trace/tr_screen.c b/src/gallium/auxiliary/driver_trace/tr_screen.c index eeda0b6696c..aaf84d5f9e4 100644 --- a/src/gallium/auxiliary/driver_trace/tr_screen.c +++ b/src/gallium/auxiliary/driver_trace/tr_screen.c @@ -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: