[Mesa-dev] [PATCH 1/5] radv: Implement querying the point clipping behavior.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Thu Oct 5 23:13:32 UTC 2017


---
 src/amd/vulkan/radv_device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index aa7fe35d87e..ae9baf590d5 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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;
 		}
-- 
2.14.2



More information about the mesa-dev mailing list