[Mesa-dev] [PATCH] radv: don't check for inline uniform blocks in radv_CmdPushDescriptorSetKHR() in release builds

2019-06-17 Thread Matthias Lorenz
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 -

[Mesa-dev] [PATCH] mesa/prgram: Use nir_variable_create in prog_to_nir to avoid a memleak.

2019-02-26 Thread Matthias Lorenz
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

[Mesa-dev] [PATCH 1/1] Avoid leaking parameter name in prog_to_nir.

2019-02-21 Thread Matthias Lorenz
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 +++

[Mesa-dev] [PATCH 0/1] Avoid leaking parameter name in prog_to_nir

2019-02-21 Thread Matthias Lorenz
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