i965/vs: Move uses of brw_compile from do_vs_prog to brw_vs_emit.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 07:59:32 +0000 (23:59 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Nov 2012 02:15:55 +0000 (18:15 -0800)
commit8af8a26480e9e71fb1501b675f21a469c1699b9b
treecd2d6267a8a80b22c7c069a373ae4dca2004d517
parent746fc346eae21d227b06799f3e82a1404c75bdc9
i965/vs: Move uses of brw_compile from do_vs_prog to brw_vs_emit.

The brw_compile structure is closely tied to the Gen4-7 hardware
encoding.  However, do_vs_prog is very generic: it just calls out to
get a compiled program and then uploads it.

This isn't ultimately where we want it, but it's a step in the right
direction: it's now closer to the code generator.

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_vs.c
src/mesa/drivers/dri/i965/brw_vs.h