i965/vs: Add virtual function make_reg_for_system_value().
authorPaul Berry <stereotype441@gmail.com>
Sun, 17 Feb 2013 16:05:52 +0000 (08:05 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 11 Apr 2013 16:25:25 +0000 (09:25 -0700)
commit42a3d63dd4470be73b92b5d87daa32a9c293f127
treee9aa51b5f74cb2e044386bb27f4909a21db27ffe
parent8941f73c7ccb3c6cfa965a19f346e4b6ead6abdb
i965/vs: Add virtual function make_reg_for_system_value().

The system values handled by vec4_visitor::visit(ir_variable *) are
VS-specific (vertex ID and instance ID).  This patch moves the
handling of those values into a new virtual function,
make_reg_for_system_value(), so that this VS-specific code won't be
inherited by geomtry shaders.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp