mesa/glthread: add glthread "perf" counters and pass them to gallium HUD
for HUD integration in following commits. This valuable profiling data will allow us to see on the HUD how well glthread is able to utilize parallelism. This is better than benchmarking, because you can see exactly what's happening and you don't have to be CPU-bound. u_threaded_context has the same counters. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -179,6 +179,7 @@ enum st_manager_param {
|
||||
struct pipe_context;
|
||||
struct pipe_resource;
|
||||
struct pipe_fence_handle;
|
||||
struct util_queue_monitoring;
|
||||
|
||||
/**
|
||||
* Used in st_context_iface->get_resource_for_egl_image.
|
||||
@@ -474,7 +475,8 @@ struct st_manager
|
||||
* Call the loader function setBackgroundContext. Called from the worker
|
||||
* thread.
|
||||
*/
|
||||
void (*set_background_context)(struct st_context_iface *stctxi);
|
||||
void (*set_background_context)(struct st_context_iface *stctxi,
|
||||
struct util_queue_monitoring *queue_info);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user