Module: Mesa
Branch: main
Commit: 69bff073ca187e6cf2e36c500c66e37e8d6d162f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=69bff073ca187e6cf2e36c500c66e37e8d6d162f

Author: Emma Anholt <[email protected]>
Date:   Wed Mar 29 14:26:56 2023 -0700

tu/perfetto: Clean up an extra token paste to just use the arg being passed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22278>

---

 src/freedreno/vulkan/tu_perfetto.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/freedreno/vulkan/tu_perfetto.cc 
b/src/freedreno/vulkan/tu_perfetto.cc
index cf0feb4203f..d54e39a6da1 100644
--- a/src/freedreno/vulkan/tu_perfetto.cc
+++ b/src/freedreno/vulkan/tu_perfetto.cc
@@ -393,8 +393,7 @@ tu_perfetto_submit(struct tu_device *dev, uint32_t 
submission_id)
       const struct trace_start_##event_name *payload)                          
     \
    {                                                                           
     \
       stage_start(                                                             
     \
-         dev, ts_ns, stage_id, payload,                                        
     \
-         sizeof(struct trace_start_##event_name),                              
     \
+         dev, ts_ns, stage_id, payload, sizeof(*payload),                      
     \
          (trace_payload_as_extra_func) 
&trace_payload_as_extra_start_##event_name); \
    }                                                                           
     \
                                                                                
     \

Reply via email to