OSDN Git Service

intel: get gen once for gen >= 9
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 5 Sep 2018 18:32:00 +0000 (11:32 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 5 Sep 2018 23:14:48 +0000 (16:14 -0700)
commitc55f1b9b29fe9ffa632497fe4accfeacadd4c7f6
treef2518d93eadc295378caa51a3f78d787dfa10de3
parent584ca8fe53c7d5612f566a9eabf7336751a96924
intel: get gen once for gen >= 9

We don't need to call IS_GEN() for each gen >= 9: we can rather use the
new intel_is_genx() helper to iterate the pciids array once.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
intel/intel_bufmgr_gem.c
intel/intel_decode.c