anv/pipeline: Set MaximumVPIndex in 3DSTATE_CLIP
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 05:52:59 +0000 (21:52 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 05:52:59 +0000 (21:52 -0800)
src/vulkan/gen7_pipeline.c
src/vulkan/gen8_pipeline.c

index 679510ab2bdea9c2a3427ce2de2b61eea80dd4d4..ea5b3401121048dc93c242757fc85ad9b0c8e2b9 100644 (file)
@@ -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;
index 261563943f7bf2657ae2f09efaa210b4823e5211..5d6b87064e97142955c8f41174d673cdeda0133a 100644 (file)
@@ -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,