From: Jason Ekstrand Date: Wed, 27 Jan 2016 05:52:59 +0000 (-0800) Subject: anv/pipeline: Set MaximumVPIndex in 3DSTATE_CLIP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2f03c5b65a07b24df284ae46b975cdf8f3d3f06;p=mesa.git anv/pipeline: Set MaximumVPIndex in 3DSTATE_CLIP --- 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,