nir/print: Fix printing variable mode
authorEduardo Lima Mitev <elima@igalia.com>
Fri, 15 Apr 2016 08:00:05 +0000 (10:00 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Fri, 15 Apr 2016 14:41:41 +0000 (16:41 +0200)
commit7e4628da48290f76dd0d4ddc29faf083db0d78ae
tree0cb8451042595420b48236fcdd7780d85688a216
parentf8752e0d95b0b562ca64e8064e98a0b66e5d1591
nir/print: Fix printing variable mode

nir_variable_mode is currently a bitflag enum, while
nir_print::print_var_decl() assumes is still a numbered list.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_print.c