i965/vs: Move struct brw_compile (p) entirely inside vec4_generator.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 08:16:05 +0000 (00:16 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Nov 2012 02:16:01 +0000 (18:16 -0800)
commitc1023608002c985b9d72edc64732cd666de2a206
treef35d949ffff9539c2eb2e492b8f4aad7ac6e63ad
parenteda9726ef51dcfd3895924eb0f74df8e67aa9c3a
i965/vs: Move struct brw_compile (p) entirely inside vec4_generator.

The brw_compile structure contains the brw_instruction store and the
brw_eu_emit.c state tracking fields.  These are only useful for the
final assembly generation pass; the earlier compilation stages doesn't
need them.

This also means that the code generator for future hardware won't have
access to the brw_compile structure, which is extremely desirable
because it prevents accidental generation of Gen4-7 code.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vs.h