Skip to content

intel/tools: Fix intel_dev_info --hwconfig switch

Jordan Justen requested to merge jljusten/mesa:intel_dev_info-fix-hwconfig into main

intel/tools: Fix intel_dev_info --hwconfig switch

Since a42a5bf8, we've been closing the file descriptor immediately after loading the devinfo struct.

intel_get_and_print_hwconfig_table() re-queries the hwconfig info from the device to print out all the entries, so we need to leave the fd open for this use. I moved the close() call to all paths which exit the for loop's current iteration.

Ref: a42a5bf8 ("intel/devinfo: add an option to pick platform to print")

Merge request reports