From a4d7a5bd1eb4cc11024697cf309df390fbd97624 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 3 Oct 2016 20:44:38 -0700 Subject: [PATCH] anv: Enable clip and cull distance support. Everything is now in place, and we appear to pass the tests on Gen7+. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- src/intel/vulkan/TODO | 1 - src/intel/vulkan/anv_device.c | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/TODO b/src/intel/vulkan/TODO index a39bf43b592..b72b6c6b898 100644 --- a/src/intel/vulkan/TODO +++ b/src/intel/vulkan/TODO @@ -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 diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3f679195a10..6ad5316c50c 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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 }, -- 2.30.2