summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Park <jpark37@lagfreegames.com>2020-11-26 19:28:32 -0800
committerMarge Bot <eric+marge@anholt.net>2020-12-02 11:27:01 +0000
commitaefaceab09eba4d19c0c5c2120209b23d82043e9 (patch)
tree9ebcf8cbb185be9f0be391a58bae0362b76a7ddc
parent60c362c4906afa7968eb1862c25d4fa44cc5355a (diff)
radv: Use unsigned with u_bit_scan for MSVC
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866>
-rw-r--r--src/amd/vulkan/radv_debug.c10
1 files 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);
}