st/mesa: implement PBO upload for multiple layers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 21 Jan 2016 17:54:54 +0000 (12:54 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Feb 2016 13:10:36 +0000 (14:10 +0100)
commitc99f2fe70ec6a9273786d123fa4ac9924b5911b2
tree47f9742dc989bd984ba9fe2f1e81784c0765cc37
parent757071ca7cdda12d2974614f9a9d02d5a834f38c
st/mesa: implement PBO upload for multiple layers

Use instancing to generate two triangles for each destination layer and use
a geometry shader to route the layer index.

v2:
- directly write layer in VS if supported by the driver (Marek Olšák)

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.h