OSDN Git Service

i965: Explicitly maintain a count of SO_DECL structures emitted.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Oct 2013 18:14:55 +0000 (11:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 18:04:37 +0000 (11:04 -0700)
commit7232e8bea71c281090a4c378156bde856782078e
treed900517a29fa5721e32f721d1a31b098ed0455f0
parente095434e520f1130fb59af28da40c50c6739adb2
i965: Explicitly maintain a count of SO_DECL structures emitted.

Currently, we emit one SO_DECL structure per output, so we use the index
in the Outputs[] array as the index into the so_decl[] array as well.

In order to support the fake "gl_SkipComponents[1234]" varyings from
ARB_transform_feedback3, we'll need to emit SO_DECLs to fill in the
holes between successive outputs.  This means we'll likely emit more
SO_DECLs than there are outputs, so we need to count it explicitly.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/gen7_sol_state.c