summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
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/genX_pipeline.c
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/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 5a3e1ab2524..3ecc29e953b 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -35,6 +35,8 @@ genX(compute_pipeline_create)(
VkPipeline* pPipeline)
{
ANV_FROM_HANDLE(anv_device, device, _device);
+ struct anv_physical_device *physical_device =
+ &device->instance->physicalDevice;
struct anv_pipeline *pipeline;
VkResult result;
@@ -115,7 +117,7 @@ genX(compute_pipeline_create)(
#else
vfe.GPGPUMode = true;
#endif
- vfe.MaximumNumberofThreads = device->info.max_cs_threads - 1;
+ vfe.MaximumNumberofThreads = physical_device->max_cs_threads - 1;
vfe.NumberofURBEntries = GEN_GEN <= 7 ? 0 : 2;
vfe.ResetGatewayTimer = true;
#if GEN_GEN <= 8