i965/vec4: inline generate_vec4_instruction() within generate_code()
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 29 Aug 2014 16:07:08 +0000 (19:07 +0300)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sun, 31 Aug 2014 18:03:49 +0000 (21:03 +0300)
commitddc1d297bcb219eea176f72d48d15fe5e3333c99
tree7a7e7b3ca42f29eb2192da51b2b9f7a52582c76b
parente34a363a781a24b2cf6930c4d37f781ffec8a19a
i965/vec4: inline generate_vec4_instruction() within generate_code()

Suggested by Matt. This patch combines and moves back the code-generation
functions from generate_vec4_instruction() into generate_code(). Makes
generate_code() a bit larger, but helps us to count loops in a
straightforward manner.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp