OSDN Git Service

intel: Add support for overriding the PCI ID via an environment variable
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Oct 2011 21:38:34 +0000 (14:38 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 10 Mar 2012 00:34:14 +0000 (16:34 -0800)
commit6e642db7f4a5628ed63ca3c479f06bd6f2ca3893
tree1b9d390bf6b1c3263126103c531ce87f2d5120bb
parentfd39e61d0edfd30052d5f0b59b9215574e37942f
intel: Add support for overriding the PCI ID via an environment variable

For example:

    export INTEL_DEVID_OVERRIDE=0x162

If this variable is set, don't actually submit the batchbuffer to the
GPU, it probably contains commands for the wrong generation of hardware.

v2: Introduce a getter for the overridden devid, and avoid getenv per exec.

Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c