summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-09-23 01:04:25 +0300
committerLionel Landwerlin <[email protected]>2016-09-23 10:12:06 +0300
commit6b21728c4a4f89754a79fe754e0c8496c25d9b66 (patch)
tree9afb4306e1012fbe7d34ec0157ce6a00c8428a0f /src/intel/vulkan/genX_pipeline.c
parent94d0e7dc0848a5f70a550f2294e459eab51ace8f (diff)
anv: get rid of duplicated values from gen_device_info
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index e1929da25ff..e5ad6ba4af2 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -35,8 +35,9 @@ genX(compute_pipeline_create)(
VkPipeline* pPipeline)
{
ANV_FROM_HANDLE(anv_device, device, _device);
- struct anv_physical_device *physical_device =
+ const struct anv_physical_device *physical_device =
&device->instance->physicalDevice;
+ const struct gen_device_info *devinfo = &physical_device->info;
struct anv_pipeline *pipeline;
VkResult result;
@@ -120,7 +121,7 @@ genX(compute_pipeline_create)(
vfe.GPGPUMode = true;
#endif
vfe.MaximumNumberofThreads =
- physical_device->max_cs_threads * subslices - 1;
+ devinfo->max_cs_threads * subslices - 1;
vfe.NumberofURBEntries = GEN_GEN <= 7 ? 0 : 2;
vfe.ResetGatewayTimer = true;
#if GEN_GEN <= 8