[igt-dev] [PATCH i-g-t] lib/intel_device_info: Add IS_DGFX() support
Dixit, Ashutosh
ashutosh.dixit at intel.com
Fri Apr 22 16:07:51 UTC 2022
On Fri, 22 Apr 2022 05:59:12 -0700, Anshuman Gupta wrote:
>
> Currently IGT is lacking IS_DGFX() macro support.
> There are some power features like D3Cold are only
> supported on discrete card. So IGT test/tools specific
> to D3Cold requires to consume IS_DGFX().
> Adding a is_dgfx field in intel_device_info and initializing
> it for DG1. All future discrete platform would require to
> initialize this field.
#define IS_DGFX(fd) gem_has_lmem(fd) ?
gem_has_lmem() is already pretty widely used so maybe we should not
introduce another way to achieve the same goal?
More information about the igt-dev
mailing list