nir/lower_io: Introduce nir_store_per_vertex_output intrinsics.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Oct 2015 07:11:01 +0000 (00:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Nov 2015 23:15:10 +0000 (15:15 -0800)
commitc51d7d5fe3425b0b1cb551f47979a1e41f1f73d8
treee7f93480f1b552bc905a6a1854deb39e32885264
parent0df452cd0d9da031d2ef29853d39112fdf8e1d46
nir/lower_io: Introduce nir_store_per_vertex_output intrinsics.

Similar to nir_load_per_vertex_input, but for outputs.  This is not
useful in geometry shaders, but will be useful in tessellation shaders.

v2: Change stage_uses_per_vertex_outputs() to is_per_vertex_output(),
    taking a nir_variable (requested by Jason Ekstrand).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_intrinsics.h
src/glsl/nir/nir_lower_io.c
src/glsl/nir/nir_print.c