From 09394ee6cfe9df2c99373963794c60678da08b39 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 7 Sep 2016 17:19:35 +0100 Subject: anv: device: calculate compute thread numbers using subslices numbers Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke --- src/intel/vulkan/anv_private.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/intel/vulkan/anv_private.h') diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index a083f93..f578a9d 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -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]; }; -- cgit v1.1