Module: Mesa
Branch: main
Commit: 0481723cf05ea64b52109a2d20ed4d9abb147031
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0481723cf05ea64b52109a2d20ed4d9abb147031

Author: Samuel Pitoiset <[email protected]>
Date:   Fri Dec 15 17:22:58 2023 +0100

radv: move radv_depth_clamp_mode to radv_cmd_buffer.c

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26713>

---

 src/amd/vulkan/radv_cmd_buffer.c | 6 ++++++
 src/amd/vulkan/radv_private.h    | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index ed2b31a3304..dcbab247111 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2022,6 +2022,12 @@ radv_get_depth_clip_enable(struct radv_cmd_buffer 
*cmd_buffer)
           (d->vk.rs.depth_clip_enable == VK_MESA_DEPTH_CLIP_ENABLE_NOT_CLAMP 
&& !d->vk.rs.depth_clamp_enable);
 }
 
+enum radv_depth_clamp_mode {
+   RADV_DEPTH_CLAMP_MODE_VIEWPORT = 0,    /* Clamp to the viewport min/max 
depth bounds */
+   RADV_DEPTH_CLAMP_MODE_ZERO_TO_ONE = 1, /* Clamp between 0.0f and 1.0f */
+   RADV_DEPTH_CLAMP_MODE_DISABLED = 2,    /* Disable depth clamping */
+};
+
 static enum radv_depth_clamp_mode
 radv_get_depth_clamp_mode(struct radv_cmd_buffer *cmd_buffer)
 {
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 9a43cf75d8e..3640c1e3174 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -2053,12 +2053,6 @@ struct radv_rt_capture_replay_handle {
    uint32_t non_recursive_idx;
 };
 
-enum radv_depth_clamp_mode {
-   RADV_DEPTH_CLAMP_MODE_VIEWPORT = 0,    /* Clamp to the viewport min/max 
depth bounds */
-   RADV_DEPTH_CLAMP_MODE_ZERO_TO_ONE = 1, /* Clamp between 0.0f and 1.0f */
-   RADV_DEPTH_CLAMP_MODE_DISABLED = 2,    /* Disable depth clamping */
-};
-
 struct radv_pipeline {
    struct vk_object_base base;
    enum radv_pipeline_type type;

Reply via email to