When NDEBUG is defined, the loop is a no-op, so wrap it in #ifndef
to avoid unused variable warnings in release builds.
Fixes: 32e1d85cb699 radv: assert on inline uniform blocks in
radv_CmdPushDescriptorSetKHR()
---
src/amd/vulkan/radv_cmd_buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff -
Use of nir_variable_create was suggested by Jason Ekstrand.
Fixes: 3d7611e9 "st/nir: use NIR for asm programs"
---
src/mesa/program/prog_to_nir.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index
Fixes: 3d7611e9 "st/nir: use NIR for asm programs"
---
src/mesa/program/prog_to_nir.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index 312b299361e..6e3fa9432a3 100644
--- a/src/mesa/program/prog_to_nir.c
+++
Noticed this while looking at recent commits.
I'm not familiar with the Mesa codebase so this might be incorrect,
but I don't see how this strdup'ed variable would be freed.
Matthias Lorenz (1):
Avoid leaking parameter name in prog_to_nir.
src/mesa/program/prog_to_nir.c