intel/gen_decoder: Add gen_spec_load_filename() function.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 16 Jul 2019 17:07:37 +0000 (10:07 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 23 Jul 2019 17:45:19 +0000 (17:45 +0000)
commit69506cbb7434578eddc08a653fa41a0666abaf0c
treec0c276b51716efcf47dd6509aa17cdc58b7c6793
parent1f2b22a6bd3f75770e2d787c0524cdeebafdcab2
intel/gen_decoder: Add gen_spec_load_filename() function.

Refactor the code from gen_spec_load_from_path() into a separate
function, that can be used with a xml file that doesn't fit the genX.xml
filename format.

Will be used soon for implementing unit tests for gen_decoder.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c
src/intel/common/gen_decoder.h