intel/compiler: Use gen_get_device_info() in test_eu_validate
authorMatt Turner <mattst88@gmail.com>
Fri, 16 Mar 2018 17:52:55 +0000 (10:52 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 16 Mar 2018 20:20:21 +0000 (13:20 -0700)
commitf3833f1ca79960a944760914b8a208c4e6bc12e7
treecc655297fd0af3da25c4d7c57426b723da083d62
parent54db78b196d883a878301651af3313fd50c39fd5
intel/compiler: Use gen_get_device_info() in test_eu_validate

Previously the unit test filled out a minimal devinfo struct. A previous
patch caused the test to begin assert failing because the devinfo was
not complete. Avoid this by using the real mechanism to create devinfo.

Note that we have to drop icl from the table, since we now rely on the
name -> PCI ID translation done by gen_device_name_to_pci_device_id(),
and ICL's PCI IDs are not upstream yet.

Fixes: f89e735719a6 ("intel/compiler: Check for unsupported register sizes.")
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/Makefile.compiler.am
src/intel/compiler/meson.build
src/intel/compiler/test_eu_validate.cpp