[Mesa-dev] [PATCH 5/9] st/mesa: implement PBO upload for multiple layers

Ilia Mirkin imirkin at alum.mit.edu
Thu Jan 21 03:39:27 PST 2016


On Thu, Jan 21, 2016 at 5:12 AM, Marek Olšák <maraeo at gmail.com> wrote:
> On Mon, Jan 18, 2016 at 11:22 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>>
>> Use instancing to generate two triangles for each destination layer and use
>> a geometry shader to route the layer index.
>
> A better way is to disable the geometry shader and write the layer
> index in the vertex shader. Some drivers (such as svga) might not
> support it though.

Or nouveau for that matter. If you do this, please make a fallback
which uses a GS to write the layer.

  -ilia


More information about the mesa-dev mailing list