intel: add stub_gpu tool
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 Apr 2020 21:17:39 +0000 (00:17 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 30 Apr 2020 08:32:54 +0000 (11:32 +0300)
commit0f4f1d70bfe96fc9e218ef5c2196bb677aaa251b
treec40e1647d85ed8a81f191bc57e354bef1b393b18
parent8c3c1d8a9906f3a45cbe50012b2ca60a3bc21fe8
intel: add stub_gpu tool

Run shaderdb like this :

   intel_stub_gpu -p bxt ./run ./shaders/*

List of platform names is available from
gen_device_name_to_pci_device_id() (src/intel/dev/gen_device_info.c).

v2: Add missing getparam support
    Raise max soft limit of file descriptors

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
src/intel/tools/intel_noop_drm_shim.c [new file with mode: 0644]
src/intel/tools/intel_stub_gpu.in [new file with mode: 0755]
src/intel/tools/meson.build