diff options
author | Jason Ekstrand <[email protected]> | 2019-06-19 17:07:43 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-21 14:18:59 +0000 |
commit | 1a9e5b909430b00ee9ca74d36707ea0bf4727845 (patch) | |
tree | ede095ac0765a3344ce3b8e6cd870ebd79351f7d /src/intel/vulkan/anv_device.c | |
parent | 4a757d6c31563fd92d7cfb4ab2e8e7b3ad62014c (diff) |
anv: Implement "pop-free" clipping
This is the preferred clipping mode since it doesn't mean your points
disappear the moment part of the point crosses over the edge of the
viewport and that lines have weird endpoints at viewport edges. We've
just never bothered to hook it up until now.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 8cb05c8116b..c3ed837c410 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1516,8 +1516,7 @@ void anv_GetPhysicalDeviceProperties2( case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: { VkPhysicalDevicePointClippingProperties *properties = (VkPhysicalDevicePointClippingProperties *) ext; - properties->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES; - anv_finishme("Implement pop-free point clipping"); + properties->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_USER_CLIP_PLANES_ONLY; break; } |