OSDN Git Service

mesa: Make the register allocator allocation take a ralloc context.
authorEric Anholt <eric@anholt.net>
Thu, 12 Jan 2012 20:51:34 +0000 (12:51 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Jan 2012 23:39:46 +0000 (15:39 -0800)
commit230f6e7ddc643e3c1aade95bf6e1934e3dff9061
tree9b5eaf9c44f63b997851791d5ed1263524b3a887
parent655b36d1d563abc17a5339886c313f358fa70b00
mesa: Make the register allocator allocation take a ralloc context.

This fixes a memory leak on i965 context destruction.

NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit b972744c78e45928876ea781b9eeef09b3baf083)
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/program/register_allocate.c
src/mesa/program/register_allocate.h