nir: Use helper macros for dealing with VLAs.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 27 Feb 2015 15:32:24 +0000 (15:32 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 4 Mar 2015 10:52:02 +0000 (10:52 +0000)
commit40a4797384d89c4ae225e1999ebe502cd50b2500
tree6656fe1e797db6214d4120543f46f3b11158c473
parent073a5d2e84ac9d95f0d037aeb04889822e76aa4e
nir: Use helper macros for dealing with VLAs.

v2:
- Single statement, by using memset return value as suggested by Ian
Romanick.
- No internal declaration, as suggested by Jason Ekstrand.
- Move macros to a header.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_live_variables.c
src/glsl/nir/nir_lower_vars_to_ssa.c
src/glsl/nir/nir_vla.h [new file with mode: 0644]