dispatch: add support for pl_timer queries
Rather than add yet another field to the growing signature of these functions, I decided to do the sensible thing and just params-ify it. (When will I learn my lesson and just use params structs to begin with?) While this rather annoyingly requires completely breaking the API of a relatively common function, we're fortunately saved by the fact that I expect the majority of pl_dispatch uses to be libplacebo-internal. This commit also adds the use of such timers to the benchmark, giving us more accurate reporting of the raw GPU execution time.
Showing
- meson.build 1 addition, 1 deletionmeson.build
- src/dispatch.c 50 additions, 37 deletionssrc/dispatch.c
- src/gpu.c 16 additions, 4 deletionssrc/gpu.c
- src/include/libplacebo/dispatch.h 62 additions, 31 deletionssrc/include/libplacebo/dispatch.h
- src/renderer.c 19 additions, 4 deletionssrc/renderer.c
- src/shaders/custom.c 19 additions, 12 deletionssrc/shaders/custom.c
- src/tests/bench.c 32 additions, 7 deletionssrc/tests/bench.c
- src/tests/gpu_tests.h 24 additions, 6 deletionssrc/tests/gpu_tests.h
Loading
Please register or sign in to comment