diff options
author | Jason Ekstrand <[email protected]> | 2016-05-26 15:38:45 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-26 16:03:44 -0700 |
commit | 15e553daf0cd5fe70994b6ac5377ff11002357a3 (patch) | |
tree | 9f5bfa950ac4549e6964888b85465aa21b34a757 /src/compiler/nir/nir_constant_expressions.py | |
parent | e7776fa9473af0fd1424f860323916077b991bf6 (diff) |
nir: Make nir_const_value a union
There's no good reason for it to be a struct of an anonymous union.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96221
Tested-by: Vinson Lee <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_constant_expressions.py')
-rw-r--r-- | src/compiler/nir/nir_constant_expressions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_constant_expressions.py b/src/compiler/nir/nir_constant_expressions.py index e36dc4853b5..96d52557bd7 100644 --- a/src/compiler/nir/nir_constant_expressions.py +++ b/src/compiler/nir/nir_constant_expressions.py @@ -270,7 +270,7 @@ static nir_const_value evaluate_${name}(unsigned num_components, unsigned bit_size, nir_const_value *_src) { - nir_const_value _dst_val = { { {0, 0, 0, 0} } }; + nir_const_value _dst_val = { {0, } }; switch (bit_size) { % for bit_size in [32, 64]: |