intel/compiler: Create a struct to hold SIMD selection state
authorCaio Oliveira <caio.oliveira@intel.com>
Tue, 8 Nov 2022 09:47:50 +0000 (01:47 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Nov 2022 04:55:18 +0000 (04:55 +0000)
commita0580dadfd20f4b27852bc10e2f38191cae05197
tree55a589b27b47688b7d7019c264b314443551fb44
parent8cda6cd774edc16ce5515ca936b900f6250c49fd
intel/compiler: Create a struct to hold SIMD selection state

This is a preparation to decouple the storage of what SIMDs
compiled/spilled from the cs_prog_data.  This will allow reuse
of SIMD selection code by Bindless Shaders.

And since we have a struct now, move the error array there so
reduce the boilerplate of the users.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19601>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_mesh.cpp
src/intel/compiler/brw_private.h
src/intel/compiler/brw_simd_selection.cpp
src/intel/compiler/test_simd_selection.cpp