summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-10-06 00:50:15 +0200
committerBas Nieuwenhuizen <[email protected]>2017-10-06 01:41:29 +0200
commitf800d9101985097fcb4ea54d267989b4ef5a6a81 (patch)
tree693062602e315e62fc1eb77bff2bf17fc1c9714c
parentbbe2082e7d38568433a5944a3f3fc7af4f079564 (diff)
radv: Implement querying the point clipping behavior.
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/amd/vulkan/radv_device.c6
1 files changed, 6 insertions, 0 deletions
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;
}