intel/fs: Return fs_reg directly from builtin setup helpers
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 22 Nov 2021 19:42:59 +0000 (13:42 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Dec 2021 16:02:16 +0000 (16:02 +0000)
commitac7255ed1e40f441c5b92faa3a7788e7672ced52
tree9fb22feac7961a69ca50c3864bb02c6a2ccfcd60
parente8acc5a7ea8168fce587c6728bb988e77516e64c
intel/fs: Return fs_reg directly from builtin setup helpers

There's no good reason why we're allocating them on the heap and
returning a pointer.  Return the fs_reg directly.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14198>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp