commit | 25362a3b601f6f59e9a364b11213ddaa29f92b42 | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@intel.com> | Wed Jun 06 15:27:41 2018 -0700 |
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | Thu Jul 12 11:08:30 2018 +0300 |
tree | 8e4582204737cd1f75a01510fbcc2cba3dcc2ebf | |
parent | c963fb78ba77273fbd7d351d11a045487135c561 [diff] |
lib/igt_kms: simplify pipe <-> name conversion Now that we can use _Static_assert() due to C11, make it future proof so we remember to update this if IGT_MAX_PIPES changes. Also reduce verbosity a little bit by calculating indexes instead of if/else chain. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>