mesa/glthread: add glthread "perf" counters and pass them to gallium HUD
authorMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 18:45:38 +0000 (20:45 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 26 Jun 2017 00:17:03 +0000 (02:17 +0200)
commit5fa69be3c8894a6f313080c3afec7063d5356395
treea90448a576095e0102b7d04452ffb41da9075789
parent833f3c1c31b1c4dc7742d83eb2db63dcc9b42e1b
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>
src/gallium/auxiliary/hud/hud_context.c
src/gallium/auxiliary/hud/hud_context.h
src/gallium/auxiliary/hud/hud_private.h
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri_screen.c
src/mesa/main/dd.h
src/mesa/main/glthread.c
src/mesa/main/glthread.h
src/mesa/state_tracker/st_context.c
src/util/u_queue.h