i965/vs: Rework memory contexts for shader compilation data.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 07:52:20 +0000 (23:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Nov 2012 02:15:53 +0000 (18:15 -0800)
commit746fc346eae21d227b06799f3e82a1404c75bdc9
tree3e6e9f8cd8a35dd91490b9dca8512dd888f97095
parent031146736c5b4e3c955a81440c6b02c5427fda0e
i965/vs: Rework memory contexts for shader compilation data.

During compilation, we allocate a bunch of things: the IR needs to last
at least until code generation...and then the program store needs to
last until after we upload the program.

For simplicity's sake, just keep it all around until we upload the
program.  After that, it can all be freed.

This will also save a lot of headaches during the upcoming refactoring.

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