gallium: set pipe_context uploaders in drivers (v3)
authorMarek Olšák <marek.olsak@amd.com>
Thu, 26 Jan 2017 23:12:37 +0000 (00:12 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Feb 2017 20:46:16 +0000 (21:46 +0100)
commit55ad59d2b72d6d6e38bd0a54586b713a7a93bb10
treeeb46201b7ce87773e0199399a75a469c389f3dc7
parent998396c32e4e95fef5a1efef6cb1a9efb0868aa6
gallium: set pipe_context uploaders in drivers (v3)

Notes:
- make sure the default size is large enough to handle all state trackers
- pipe wrappers don't receive transfer calls from stream_uploader, because
  pipe_context::stream_uploader points directly to the underlying driver's
  stream_uploader (to keep it simple for now)

v2: add error handling to nv50, nvc0, noop
v3: set const_uploader

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> (v1)
Tested-by: Charmaine Lee <charmainel@vmware.com>
18 files changed:
src/gallium/drivers/ddebug/dd_context.c
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/noop/noop_pipe.c
src/gallium/drivers/nouveau/nv30/nv30_context.c
src/gallium/drivers/nouveau/nv50/nv50_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/rbug/rbug_context.c
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/swr/swr_context.cpp
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/virgl/virgl_context.c