[igt-dev] [PATCH i-g-t 1/3] lib: Support multiple filters

Petri Latvala petri.latvala at intel.com
Tue Nov 10 08:35:06 UTC 2020


On Mon, Nov 09, 2020 at 05:02:48PM +0000, Chris Wilson wrote:
> Quoting Arkadiusz Hiler (2020-05-04 08:37:05)
> > This patch brings back support for multiple filters that was in the
> > original series by Zbyszek.
> 
> How is this filtering meant to work for tests that try to open two
> different devices? Shouldn't the igt_device_filter_count() take into
> account whether the filter even matches the desired device?
> Should all of the filters include all possible devices?


If you use filters, and you have two different devices you want to
use, the test should use drm_open_driver_another() and have filters
for two devices, semicolon-separated. See kms_prime for a good example
of the usage.


-- 
Petri Latvala


More information about the igt-dev mailing list