i965: Fix leak in blorp CopyTexSubImage2D
authorChristopher James Halse Rogers <raof@ubuntu.com>
Sat, 16 Feb 2013 05:39:07 +0000 (16:39 +1100)
committerPaul Berry <stereotype441@gmail.com>
Sat, 16 Feb 2013 16:11:14 +0000 (08:11 -0800)
commitdd599188d2868838541859a76800a8420958d358
treeb5d3cde99f2c68dee79e93ad87c4069fb924d7eb
parentf1ab67c13ab97f19c08d99c6ba101edc7d7b80e6
i965: Fix leak in blorp CopyTexSubImage2D

_mesa_delete_renderbuffer does not call the driver-specific
renderbuffer delete function, so the blorp code was leaking the
Intel-specific bits, including some GEM objects.

Call the renderbuffer's ->Delete() method instead, which does the
right thing.

Fixes Unity rapidly sending the machine into the arms of the OOM-killer

Note: This is a candidate for the 9.1 branch.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp