OSDN Git Service

intel: Allow some codenames in INTEL_DEVID_OVERRIDE
authorNeil Roberts <neil@linux.intel.com>
Mon, 9 Nov 2015 15:27:52 +0000 (16:27 +0100)
committerMatt Turner <mattst88@gmail.com>
Mon, 14 Nov 2016 18:40:58 +0000 (10:40 -0800)
commit319108f9475f0165c9b4885efc8cf3b7e042b7fb
tree169ef1625b77f8a882c867aa1fd6e0843789f5e0
parent670f1e4fdadc197599cdc61d3104f8c27234765e
intel: Allow some codenames in INTEL_DEVID_OVERRIDE

As well as allowing a hexadecimal PCI ID number, the
INTEL_DEVID_OVERRIDE environment variable can now contain one of a few
short codenames. The codenames are stored in a small table to map them
to a corresponding PCI ID. This makes it easier to use without having
to look up the PCI IDs manually.

The PCI IDs used are the same as those chosen for the -p option of
run.c in shader-db but SKL has been added as well.

Reviewed-by: Matt Turner <mattst88@gmail.com>
intel/intel_bufmgr_gem.c