OSDN Git Service

radeonsi: do not export VS outputs from vertex streams != 0
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 29 Nov 2016 14:53:19 +0000 (15:53 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 08:04:36 +0000 (09:04 +0100)
commit21f2bb22a3077dce5ce8e93a0bebc9a9b7fdb82d
treeb86266ec456255d789ead9c7606d55f6d20d6d01
parentfc0e009aa7c4b865f4fbd3a46a1cd5259f121f0e
radeonsi: do not export VS outputs from vertex streams != 0

This affects for GS copy shaders. When an output is meant for vertex
stream != 0, then we don't have to make it available to the pixel
shader.

There is a minor inefficiency here because the GLSL varying packing pass
does not group varyings of the same vertex stream together, but it
shouldn't be important in practice.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c