intel/dev: Add max_threads_per_psd field to devinfo for gfx8+

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13866>
This commit is contained in:
Jordan Justen 2021-11-01 17:20:20 -07:00 committed by Marge Bot
parent 5e2834754e
commit 08a897fa38
3 changed files with 7 additions and 0 deletions

View File

@ -433,6 +433,7 @@ static const struct intel_device_info intel_device_info_hsw_gt3 = {
.max_tes_threads = 504, \
.max_gs_threads = 504, \
.max_wm_threads = 384, \
.max_threads_per_psd = 64, \
.timestamp_frequency = 12500000, \
.max_constant_urb_size_kb = 32, \
.cs_prefetch_size = 512
@ -542,6 +543,7 @@ static const struct intel_device_info intel_device_info_chv = {
.max_gs_threads = 336, \
.max_tcs_threads = 336, \
.max_tes_threads = 336, \
.max_threads_per_psd = 64, \
.max_cs_threads = 56, \
.timestamp_frequency = 12000000, \
.cs_prefetch_size = 512, \
@ -828,6 +830,7 @@ static const struct intel_device_info intel_device_info_cfl_gt3 = {
.max_gs_threads = 224, \
.max_tcs_threads = 224, \
.max_tes_threads = 364, \
.max_threads_per_psd = 64, \
.max_cs_threads = 56, \
.cs_prefetch_size = 512
@ -950,6 +953,7 @@ static const struct intel_device_info intel_device_info_ehl_2x4 = {
.max_gs_threads = 336, \
.max_tcs_threads = 336, \
.max_tes_threads = 546, \
.max_threads_per_psd = 64, \
.max_cs_threads = 112, /* threads per DSS */ \
.urb = { \
GFX12_URB_MIN_MAX_ENTRIES, \

View File

@ -268,6 +268,8 @@ struct intel_device_info
*/
unsigned max_wm_threads;
unsigned max_threads_per_psd;
/**
* Maximum Compute Shader threads.
*

View File

@ -31,6 +31,7 @@ main(int argc, char *argv[])
assert(devinfo.cs_prefetch_size > 0);
assert(devinfo.ver < 7 || devinfo.max_constant_urb_size_kb > 0);
assert(devinfo.ver < 8 || devinfo.max_threads_per_psd > 0);
assert(devinfo.platform >= 1);