intel/compiler: Create and use struct for CS thread payload
authorCaio Oliveira <caio.oliveira@intel.com>
Tue, 23 Aug 2022 04:47:02 +0000 (21:47 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Sep 2022 01:44:24 +0000 (01:44 +0000)
commit0b6e613de8d0c42d01a762fe1d37d77cfa8aeb47
tree7d1422adc2479cb1065289edff9b86e6d42433e0
parentd8461e975a95a760c72507f667a9cea2e611531e
intel/compiler: Create and use struct for CS thread payload

Move subgroup_id, that's only used by CS for verx10 < 125, as part of
the payload too -- even though is not, strictly speaking.

Note the thread execution of Task/Mesh is similar enough, so we make
their common struct inherit from cs_thread_payload.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18176>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_fs_thread_payload.cpp