intel/fs: use stack for temporary array
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 6 May 2021 12:24:03 +0000 (14:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 28 Jun 2021 09:44:40 +0000 (09:44 +0000)
commit2cf189cc88e809694c33c63c46465c28faf542a3
tree13460bb57cab55582ca94766e1a30d45ce3d2017
parent5c66fb7e6e553a9d13d2eeb68e65e29159accb16
intel/fs: use stack for temporary array

"regs" is an array of 2 ->
  "m" must be <= 2 ->
  "components" array can be allocated on the stack

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11575>
src/intel/compiler/brw_fs.h