commit | 02530c5dc5dc88078f41fb134c7e0e3833c9f772 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Thu Sep 24 17:01:23 2015 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Sat Sep 26 12:01:53 2015 -0700 |
tree | b83732ce6a5af75c5a2912f1fcb0296381189333 | |
parent | df221f65e26199a74bc259d3f94e70637b843afa [diff] |
nir: Add a function to count the number of vertices a GS emits. Some hardware (such as Broadwell) can run geometry shaders more efficiently when the number of vertices emitted is statically known. This pass provides a way to obtain the constant vertex count, or -1 indicating that the vertex count is unknown/non-constant. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>