Module: Mesa Branch: main Commit: aa1eb54b3bd721f5457c3829c927789a9453b650 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa1eb54b3bd721f5457c3829c927789a9453b650
Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Tue Jan 2 11:20:58 2024 +0100 radv: constify a variable in radv_emit_depth_control() Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26847> --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index df42a603502..9387b51f040 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2336,7 +2336,7 @@ static void radv_emit_depth_control(struct radv_cmd_buffer *cmd_buffer) { const struct radv_rendering_state *render = &cmd_buffer->state.render; - struct radv_dynamic_state *d = &cmd_buffer->state.dynamic; + const struct radv_dynamic_state *d = &cmd_buffer->state.dynamic; const bool stencil_test_enable = d->vk.ds.stencil.test_enable && (render->ds_att_aspects & VK_IMAGE_ASPECT_STENCIL_BIT);