[Mesa-dev] [PATCH 1/2] nir: Use alloca instead of variable length arrays.

Kenneth Graunke kenneth at whitecape.org
Fri Feb 27 01:53:15 PST 2015


On Thursday, February 26, 2015 04:51:21 PM Jose Fonseca wrote:
> This is to enable the code to build with -Werror=vla in the short term,
> and enable the code to build with MSVC2013 soon after.
> ---
>  include/c99_alloca.h                 | 45 ++++++++++++++++++++++++++++++++++++
>  src/glsl/nir/nir_from_ssa.c          | 19 +++++++--------
>  src/glsl/nir/nir_live_variables.c    |  5 ++--
>  src/glsl/nir/nir_lower_vars_to_ssa.c | 13 +++++++----
>  4 files changed, 66 insertions(+), 16 deletions(-)
>  create mode 100644 include/c99_alloca.h

Thanks, Jose!  We really appreciate this!

Both patches are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

(I'm fine with the code either as-is, or with Brian's suggestion.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150227/dd9cfbc2/attachment.sig>


More information about the mesa-dev mailing list