summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-09-07 17:19:35 +0100
committerLionel Landwerlin <[email protected]>2016-09-21 12:01:06 +0300
commit09394ee6cfe9df2c99373963794c60678da08b39 (patch)
tree01a4ff0b5a7a8c92fd949af3255c73240f888250 /src/intel/vulkan/anv_private.h
parent1f291369e430922821c6f9fe5d73998c0eb09501 (diff)
anv: device: calculate compute thread numbers using subslices numbers
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index a083f93fc64..f578a9d9a85 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];
};