Hi all, I sent similar patches around a while ago. After drawoverhead benchmarks I went back to the drawing board. In the end, the current approach is quite similar to what I did before, except with an added "poor man's RCU" that allows the fast path to work without locking.
Please review! Thanks, Nicolai -- src/gallium/auxiliary/util/u_inlines.h | 16 +- src/gallium/include/pipe/p_context.h | 10 + src/mesa/state_tracker/st_atom_sampler.c | 21 +- src/mesa/state_tracker/st_cb_texture.c | 28 ++- src/mesa/state_tracker/st_manager.c | 3 + src/mesa/state_tracker/st_sampler_view.c | 271 +++++++++++++++------ src/mesa/state_tracker/st_sampler_view.h | 3 + src/mesa/state_tracker/st_texture.h | 40 ++- 8 files changed, 281 insertions(+), 111 deletions(-) _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev