gallium/util: add threaded_context as a pipe_context wrapper
authorMarek Olšák <marek.olsak@amd.com>
Thu, 2 Mar 2017 00:15:55 +0000 (01:15 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 15 May 2017 11:01:33 +0000 (13:01 +0200)
commitb8e552424eed58d95671da3191c7199cf171b3f0
tree04b3030072ef8285580f2b31162d0e45a0c92dd1
parentdca19b1d427f0ecbc0bbd530d1fc3f6c0ce2b5c1
gallium/util: add threaded_context as a pipe_context wrapper

v2: - rename num_calls -> num_call_slots (for tc_call)
    - rename num_calls -> num_total_call_slots (for tc_batch)
    - rename num_offloaded/direct_calls -> num_offloaded/direct_slots
    - declare slot[0] instead of slot[1]
    - remove no-op leftover code from tc_draw_vbo
    - use tc_set_resource_reference to fill threaded_transfer
    - fix map flags for sparse buffers
    - cosmetic changes

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/util/u_threaded_context.c [new file with mode: 0644]
src/gallium/auxiliary/util/u_threaded_context.h [new file with mode: 0644]
src/gallium/auxiliary/util/u_threaded_context_calls.h [new file with mode: 0644]