intel/dev: Add a max_cs_workgroup_threads field
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 13 Jul 2021 23:21:43 +0000 (18:21 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Jul 2021 23:02:34 +0000 (23:02 +0000)
commit6642749458b6a2e0800bb5e606dcf15e4db0c479
tree9737368da61eb2d130e18dbe9ae0c1900171febf
parent915e5a8cc306c35dad2f7e3a83c18ce72b16e3d6
intel/dev: Add a max_cs_workgroup_threads field

This is distinct form max_cs_threads because it also encodes
restrictions about the way we use GPGPU/COMPUTE_WALKER.  This gets rid
of the MIN2(64, devinfo->max_cs_threads) we have scattered all over the
driver and puts it in a central place.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11861>
src/gallium/drivers/crocus/crocus_screen.c
src/gallium/drivers/iris/iris_screen.c
src/intel/compiler/brw_fs.cpp
src/intel/dev/intel_device_info.c
src/intel/dev/intel_device_info.h
src/intel/vulkan/anv_device.c
src/mesa/drivers/dri/i965/brw_context.c