radv: Implement querying the point clipping behavior.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 5 Oct 2017 22:50:15 +0000 (00:50 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 5 Oct 2017 23:41:29 +0000 (01:41 +0200)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index aa7fe35d87e8a69015517b270e4e1a637e2b1d64..ae9baf590d584678b09be766dc7f3a005ffe3e2a 100644 (file)
@@ -866,6 +866,12 @@ void radv_GetPhysicalDeviceProperties2KHR(
                        properties->maxMultiviewInstanceIndex = INT_MAX;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES_KHR: {
+                       VkPhysicalDevicePointClippingPropertiesKHR *properties =
+                           (VkPhysicalDevicePointClippingPropertiesKHR*)ext;
+                       properties->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES_KHR;
+                       break;
+               }
                default:
                        break;
                }