i965/fs: Fix stack allocation of fs_inst and stop stealing src array provided on...
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 5 Feb 2015 23:14:51 +0000 (01:14 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 14:05:51 +0000 (16:05 +0200)
commitf2668f9f214201503419342b980d3afa8b796926
treebed9ffabb096d25d3e2ae6857b72fda589f90acf
parentc472793a2a55bb529bf4297f04ff785ce52cfc6e
i965/fs: Fix stack allocation of fs_inst and stop stealing src array provided on construction.

Using 'ralloc*(this, ...)' is wrong if the object has automatic
storage or was allocated through any other means.  Use normal dynamic
memory instead.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h