anv: Enable clip and cull distance support.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Oct 2016 03:44:38 +0000 (20:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Nov 2016 08:29:24 +0000 (00:29 -0800)
Everything is now in place, and we appear to pass the tests on Gen7+.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/TODO
src/intel/vulkan/anv_device.c

index a39bf43b592129eb0358ae18cdd29615a827e2b6..b72b6c6b89895232803b37e6b32faca9c0f9719b 100644 (file)
@@ -4,7 +4,6 @@ Intel Vulkan ToDo
 Missing Features:
  - FP64
  - Tessellation
- - Cull and Clip Distance
  - Image Gather Extended
  - Storage Image Without Format
  - Investigate CTS failures on HSW
index 3f679195a107630c67768ece282dd160562a68ac..6ad5316c50cee6f7fbcc53827bbc79b1af263f11 100644 (file)
@@ -439,8 +439,8 @@ void anv_GetPhysicalDeviceFeatures(
       .shaderStorageImageArrayDynamicIndexing   = true,
       .shaderStorageImageReadWithoutFormat      = false,
       .shaderStorageImageWriteWithoutFormat     = true,
-      .shaderClipDistance                       = false,
-      .shaderCullDistance                       = false,
+      .shaderClipDistance                       = true,
+      .shaderCullDistance                       = true,
       .shaderFloat64                            = false,
       .shaderInt64                              = false,
       .shaderInt16                              = false,
@@ -576,9 +576,9 @@ void anv_GetPhysicalDeviceProperties(
       .maxSampleMaskWords                       = 1,
       .timestampComputeAndGraphics              = false,
       .timestampPeriod                          = time_stamp_base,
-      .maxClipDistances                         = 0 /* FIXME */,
-      .maxCullDistances                         = 0 /* FIXME */,
-      .maxCombinedClipAndCullDistances          = 0 /* FIXME */,
+      .maxClipDistances                         = 8,
+      .maxCullDistances                         = 8,
+      .maxCombinedClipAndCullDistances          = 8,
       .discreteQueuePriorities                  = 1,
       .pointSizeRange                           = { 0.125, 255.875 },
       .lineWidthRange                           = { 0.0, 7.9921875 },