From: Kenneth Graunke Date: Tue, 4 Oct 2016 03:44:38 +0000 (-0700) Subject: anv: Enable clip and cull distance support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4d7a5bd1eb4cc11024697cf309df390fbd97624;p=mesa.git 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 --- 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 },