intel/fs: Alloc pull constants off mem_ctx
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Nov 2017 14:57:21 +0000 (07:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Nov 2017 16:55:21 +0000 (09:55 -0700)
commit7b4387519c382cffef9c62bbbbefcfe71cfde905
tree80efd8f4a46f2c1a28b104627ca4789523fbeafa
parentcb831d918b8151621ae405bc63c011eae0339e60
intel/fs: Alloc pull constants off mem_ctx

It doesn't actually matter since the only user of push constants, i965,
ralloc_steals it back to NULL but it's more consistent and probably
fixes memory leaks in some error cases.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/compiler/brw_fs.cpp