vk: Set maximum point size range
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 11 Jun 2015 06:13:24 +0000 (23:13 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 11 Jun 2015 16:25:04 +0000 (09:25 -0700)
We set both minimum and maximum point size to 0 in 3DSTATE_CLIP, which
will clip away all points.

src/vulkan/pipeline.c

index 6f0b5b4aafd2e18faf25b0fc098913c8e9bb2657..95123bf931e9812ca47c080c76ce4a4abcbe0bac 100644 (file)
@@ -493,7 +493,9 @@ anv_pipeline_create(
 
    anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_CLIP,
                   .ClipEnable = true,
-                  .ViewportXYClipTestEnable = !(extra && extra->disable_viewport));
+                  .ViewportXYClipTestEnable = !(extra && extra->disable_viewport),
+                  .MinimumPointWidth = 0.125,
+                  .MaximumPointWidth = 255.875);
 
    anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_WM,
                   .StatisticsEnable = true,