anv: device: calculate compute thread numbers using subslices numbers

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Lionel Landwerlin
2016-09-07 17:19:35 +01:00
parent 1f291369e4
commit 09394ee6cf
6 changed files with 74 additions and 18 deletions

View File

@@ -570,6 +570,20 @@ struct anv_physical_device {
struct isl_device isl_dev;
int cmd_parser_version;
uint32_t eu_total;
uint32_t subslice_total;
/**
* Platform specific constants containing the maximum number of threads
* for each pipeline stage.
*/
uint32_t max_vs_threads;
uint32_t max_hs_threads;
uint32_t max_ds_threads;
uint32_t max_gs_threads;
uint32_t max_wm_threads;
uint32_t max_cs_threads;
struct anv_wsi_interface * wsi[VK_ICD_WSI_PLATFORM_MAX];
};