mesa/src/gallium/tests
Marek Olšák 27dcb46629 gallium: add take_ownership param into set_vertex_buffers to eliminate atomics
There are a few places (mainly u_threaded_context) that do:
   set_vertex_buffers(...);
   for (i = 0; i < count; i++)
      pipe_resource_reference(&buffers[i].resource.buffer, NULL);

set_vertex_buffers increments the reference counts while the loop
decrements them.

This commit eliminates those reference count changes by adding a parameter
into set_vertex_buffers that tells the callee to accept all buffers
without incrementing the reference counts.

AMD Zen benefits from this because it has slow atomics if they come from
different CCXs.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8298>
2021-01-27 23:53:35 +00:00
..
graw gallium: add take_ownership param into set_vertex_buffers to eliminate atomics 2021-01-27 23:53:35 +00:00
python/tests/regress/fragment-shader Add a test for the compare opcode. 2012-02-23 12:29:29 +00:00
trivial gallium: add unbind_num_trailing_slots to set_sampler_views 2021-01-27 23:53:35 +00:00
unit gallium/tests: fix unused-but-set-variable warning 2020-12-01 16:51:01 +00:00
meson.build meson: disable graw tests on mingw 2019-10-10 16:33:04 -07:00