From f2f03c5b65a07b24df284ae46b975cdf8f3d3f06 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 26 Jan 2016 21:52:59 -0800 Subject: [PATCH] anv/pipeline: Set MaximumVPIndex in 3DSTATE_CLIP --- src/vulkan/gen7_pipeline.c | 3 ++- src/vulkan/gen8_pipeline.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vulkan/gen7_pipeline.c b/src/vulkan/gen7_pipeline.c index 679510ab2bd..ea5b3401121 100644 --- a/src/vulkan/gen7_pipeline.c +++ b/src/vulkan/gen7_pipeline.c @@ -266,7 +266,8 @@ genX(graphics_pipeline_create)( .LineStripListProvokingVertexSelect = 0, .TriangleFanProvokingVertexSelect = 0, .MinimumPointWidth = 0.125, - .MaximumPointWidth = 255.875); + .MaximumPointWidth = 255.875, + .MaximumVPIndex = pCreateInfo->pViewportState->viewportCount - 1); uint32_t samples = 1; uint32_t log2_samples = __builtin_ffs(samples) - 1; diff --git a/src/vulkan/gen8_pipeline.c b/src/vulkan/gen8_pipeline.c index 261563943f7..5d6b87064e9 100644 --- a/src/vulkan/gen8_pipeline.c +++ b/src/vulkan/gen8_pipeline.c @@ -256,7 +256,8 @@ genX(graphics_pipeline_create)( .ClipEnable = true, .ViewportXYClipTestEnable = !(extra && extra->disable_viewport), .MinimumPointWidth = 0.125, - .MaximumPointWidth = 255.875); + .MaximumPointWidth = 255.875, + .MaximumVPIndex = pCreateInfo->pViewportState->viewportCount - 1); anv_batch_emit(&pipeline->batch, GENX(3DSTATE_WM), .StatisticsEnable = true, -- 2.30.2