mesa/src
Kenneth Graunke 25f8fbbf2f i965/fs: Use 'c' as the mem_ctx in fs_visitor.
Previously, the memory context situation was a bit of a mess:

fs_visitor allocated its own memory context, and freed it in the
destructor.  However, some data produced by fs_visitor (such as the list
of instructions) needs to live beyond when fs_visitor is "done", so the
caller can pass it to fs_generator.

Everything worked out because brw_wm_fs_emit's fs_visitor variables
happen to not go out of scope until the end of the function.  But that
meant that moving the declaration of, say, the SIMD16 fs_visitor
instance, could cause everything to explode.

Using a memory context that exists for the duration of the compile is
clearer, and should be equivalent.

Ultimately, we don't want to use 'c', but this matches the behavior of
fs_generator and gen8_fs_generator, so it'll be simple to change later.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-05-18 23:35:20 -07:00
..
egl wayland: Move version 2 request to end of interface specification 2014-05-12 15:55:21 -07:00
gallium nv50/ir: fix integer mul lowering for u32 x u32 -> high u32 2014-05-18 17:59:16 -04:00
gbm gbm: cleanup __DRI*extension handling 2014-04-28 19:13:38 +01:00
getopt
glsl glsl: Add C-callable fprint_ir function. 2014-05-15 15:45:39 -07:00
glx glx/tests: Partially revert commit 51e3569573 2014-05-10 02:08:36 +01:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader loader: don't limit the non-udev path to only android 2014-04-05 12:17:28 +01:00
mapi mesa: Add core support for the GL_INTEL_performance_query extension. 2014-05-02 10:07:04 -07:00
mesa i965/fs: Use 'c' as the mem_ctx in fs_visitor. 2014-05-18 23:35:20 -07:00
Makefile.am src/build: Add getopt to distribution. 2014-04-07 09:41:02 -07:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00