Module: Mesa Branch: main Commit: b003a101ee36edf72c41341dd09bea3d6aa40ea8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b003a101ee36edf72c41341dd09bea3d6aa40ea8
Author: Samuel Pitoiset <[email protected]> Date: Mon Feb 28 16:00:43 2022 +0100 radv: stop zeroing radv_sample_locations_state in barriers This is useless because all fields should be correctly filled if the pNext struct is found. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15164> --- 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 8ead01980b4..f970ae81ca9 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -8403,7 +8403,7 @@ radv_barrier(struct radv_cmd_buffer *cmd_buffer, const VkDependencyInfoKHR *dep_ const struct VkSampleLocationsInfoEXT *sample_locs_info = vk_find_struct_const(dep_info->pImageMemoryBarriers[i].pNext, SAMPLE_LOCATIONS_INFO_EXT); - struct radv_sample_locations_state sample_locations = {0}; + struct radv_sample_locations_state sample_locations; if (sample_locs_info) { assert(image->flags & VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT);
