radv: fix dynamic depth clamp enable support
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Apr 2023 16:13:19 +0000 (18:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 07:00:59 +0000 (07:00 +0000)
commite25e4c81de800f659665d28f9670c41bb3e857dc
tree8f2f7a7b8810f6a5fee6df433694092024a403f4
parentcc66d546dde059145facf06d8b3decaf871070d8
radv: fix dynamic depth clamp enable support

The Vulkan spec says:

"If the depth clamping state is changed dynamically, and the pipeline
was not created with VK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT enabled,
then depth clipping is enabled when depth clamping is disabled and
vice versa"

Fixes: e48c0fbd8f7 ("radv: add support for dynamic depth clamp enable")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22777>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline_graphics.c