glsl: add ir_emit_vertex and ir_end_primitive instruction types
authorBryan Cain <bryancain3@gmail.com>
Fri, 15 Feb 2013 15:26:35 +0000 (09:26 -0600)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:20:16 +0000 (20:20 -0700)
commitae6eba3e32a142665d2ae6e15c9122d3201c0b5d
tree924e3137d87fb4f2cd8878dd5d87399ae8b9e026
parentc6be77ee6fe27233f42e98e50002c4b0bdc02913
glsl: add ir_emit_vertex and ir_end_primitive instruction types

These correspond to the EmitVertex and EndPrimitive functions in GLSL.

v2 (Paul Berry <stereotype441@gmail.com>): Add stub implementations of
new pure visitor functions to i965's vec4_visitor and fs_visitor
classes.

v3 (Paul Berry <stereotype441@gmail.com>): Rename classes to be more
consistent with the names used in the GL spec.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
16 files changed:
src/glsl/ir.h
src/glsl/ir_hierarchical_visitor.cpp
src/glsl/ir_hierarchical_visitor.h
src/glsl/ir_hv_accept.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_print_visitor.h
src/glsl/ir_reader.cpp
src/glsl/ir_visitor.h
src/glsl/lower_output_reads.cpp
src/glsl/opt_dead_code_local.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp