From 7b7189e9f56c17cc810dd63ce767d4715288b05a Mon Sep 17 00:00:00 2001 From: Zbigniew Kempczyński Date: Thu, 24 Oct 2019 14:05:15 +0300 Subject: Add device selection in IGT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New IGT command line argument --device, IGT_DEVICE enviroment and .igtrc Common::Device were added to allow selecting device using device selection API. See generated docs for device selection and lsgpu for more details on filters. NOTE: IGT_FORCE_DRIVER still works if no filter is selected. We may want to deprecate it later. NOTE2: This does not work with tests that open 2 or more devices (e.g. kms_prime). The core is capable of doing multiple filtering passes but we need to figure out how we want *open*() functions to expose this capability. v2 (Arek): * remove functions acting on igt_device_card * use only a single filter v3 (Arek): * typos, misspellings (Petri) * add notes on IGT_FORCE_DRIVER and opening 2 or more devices Cc: Petri Latvala Signed-off-by: Zbigniew Kempczyński Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala --- lib/drmtest.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/drmtest.h') diff --git a/lib/drmtest.h b/lib/drmtest.h index 05eb0860..632c616b 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -50,6 +50,7 @@ #define DRIVER_AMDGPU (1 << 3) #define DRIVER_V3D (1 << 4) #define DRIVER_PANFROST (1 << 5) + /* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system * with vgem as well as a supported driver, you can end up with a @@ -90,6 +91,7 @@ int drm_open_driver(int chipset); int drm_open_driver_master(int chipset); int drm_open_driver_render(int chipset); int __drm_open_driver(int chipset); +int __drm_open_driver_render(int chipset); void gem_quiescent_gpu(int fd); -- cgit v1.2.3