intel/fs: Use a single untyped surface read for load_num_work_groups
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 1 Sep 2020 19:34:44 +0000 (14:34 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 20:38:22 +0000 (20:38 +0000)
commit5799da47c794aced34187df2eee6fd349c51b931
tree6f7e1ca62e1d9ab23a64cbd30947bb26f60b1626
parent8e8701b43a0fc1997ecdb6a9557dd3e2c1a0d398
intel/fs: Use a single untyped surface read for load_num_work_groups

There's no good reason to split this into three.  Sure, CS indirects are
only guaranteed by the spec to be DWORD aligned, but that's all untyped
surface reads require anyway.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6570>
src/intel/compiler/brw_fs_nir.cpp