gallium: add common uploaders into pipe_context (v2)
authorMarek Olšák <marek.olsak@amd.com>
Thu, 26 Jan 2017 21:24:13 +0000 (22:24 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Feb 2017 20:46:16 +0000 (21:46 +0100)
commitd71bc0d741a20d146e8580e80e148c291aad0e64
tree5adfa2d97bb781c03168970316f7172e70342c7e
parent3360dbe0c1ebeead9046955b3de4dcdf86cfbb40
gallium: add common uploaders into pipe_context (v2)

For lower memory usage and more efficient updates of the buffer residency
list. (e.g. if drivers keep seeing the same buffer for many consecutive
"add" calls, the calls can be turned into no-ops trivially)

v2: add const_uploader, add documentation

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Tested-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/docs/source/context.rst
src/gallium/include/pipe/p_context.h