nir/algebraic: #define around structure definitions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Mar 2015 00:22:44 +0000 (17:22 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Apr 2015 19:51:03 +0000 (12:51 -0700)
commit22ee7eeb4e08ffdd8d53aa68e4d2b2c09f1721d0
treeb75f5586931febfca60bde05f57607d76d0afefd
parent793a94d6b5fc589ca8d7475347def4e222cd3d7c
nir/algebraic: #define around structure definitions

Previously, we couldn't generate two algebraic passes in the same file
because of multiple structure definitions.  To solve this, we play the
age-old header file trick and just #define around it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/nir/nir_algebraic.py