From: Samuel Pitoiset Date: Mon, 18 Dec 2017 18:38:54 +0000 (+0100) Subject: radv: remove one useless check in radv_flush_constants() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9a07474a1eb4b276c75cfb27d040358139562d1;p=mesa.git radv: remove one useless check in radv_flush_constants() pipeline->layout can't be NULL now. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 4a048485c86..a366facd634 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1753,7 +1753,8 @@ radv_flush_constants(struct radv_cmd_buffer *cmd_buffer, uint64_t va; stages &= cmd_buffer->push_constant_stages; - if (!stages || !layout || (!layout->push_constant_size && !layout->dynamic_offset_count)) + if (!stages || + (!layout->push_constant_size && !layout->dynamic_offset_count)) return; if (!radv_cmd_buffer_upload_alloc(cmd_buffer, layout->push_constant_size +