Mesa (master): radv: Implement querying the point clipping behavior.

Bas Nieuwenhuizen bnieuwenhuizen at kemper.freedesktop.org
Thu Oct 5 23:42:34 UTC 2017


Module: Mesa
Branch: master
Commit: f800d9101985097fcb4ea54d267989b4ef5a6a81
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f800d9101985097fcb4ea54d267989b4ef5a6a81

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Fri Oct  6 00:50:15 2017 +0200

radv: Implement querying the point clipping behavior.

Reviewed-by: Dave Airlie <airlied at redhat.com>

---

 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 aa7fe35d87..ae9baf590d 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;
 		}




More information about the mesa-commit mailing list