radv: add support for VK_EXT_depth_range_unrestricted
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 16 Mar 2018 15:39:27 +0000 (16:39 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Mar 2018 20:55:41 +0000 (21:55 +0100)
commitf0211155f14c890e0c771a4fb51663c48eca983c
tree49583c47d0b03b6c7a09d9d48f80174859cbcc04
parent4e9b0b39b592e2bf79ac577ec6cd091a924359ae
radv: add support for VK_EXT_depth_range_unrestricted

This extension removes the restrictions on minDepth/maxDepth,
minDepthBounds/maxDepthBounds and VkClearDepthStencilValue::depth.

The following CTS tests now pass:

dEQP-VK.glsl.builtin_var.fragdepth.line_list_d32_sfloat_large_depth
dEQP-VK.glsl.builtin_var.fragdepth.point_list_d32_sfloat_large_depth
dEQP-VK.glsl.builtin_var.fragdepth.triangle_list_d32_sfloat_large_depth
dEQP-VK.draw.inverted_depth_ranges.nodepthclamp_depth_range_unrestricted
dEQP-VK.draw.inverted_depth_ranges.depthclamp_depth_range_unrestricted

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_pipeline.c