Module: Mesa Branch: master Commit: aefaceab09eba4d19c0c5c2120209b23d82043e9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aefaceab09eba4d19c0c5c2120209b23d82043e9
Author: James Park <[email protected]> Date: Thu Nov 26 19:28:32 2020 -0800 radv: Use unsigned with u_bit_scan for MSVC Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866> --- src/amd/vulkan/radv_debug.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 020474f0eaf..e12b50dabf3 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -379,8 +379,9 @@ radv_dump_annotated_shaders(struct radv_pipeline *pipeline, "\n\n", num_waves); /* Dump annotated active graphics shaders. */ - while (active_stages) { - int stage = u_bit_scan(&active_stages); + unsigned stages = active_stages; + while (stages) { + int stage = u_bit_scan(&stages); radv_dump_annotated_shader(pipeline->shaders[stage], stage, waves, num_waves, f); @@ -447,8 +448,9 @@ radv_dump_shaders(struct radv_pipeline *pipeline, VkShaderStageFlagBits active_stages, FILE *f) { /* Dump active graphics shaders. */ - while (active_stages) { - int stage = u_bit_scan(&active_stages); + unsigned stages = active_stages; + while (stages) { + int stage = u_bit_scan(&stages); radv_dump_shader(pipeline, pipeline->shaders[stage], stage, f); } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
