[igt-dev] [PATCH i-g-t v8] tests/kms_async_flips: Add test to validate asynchronous flips

Karthik B S karthik.b.s at intel.com
Wed Sep 23 02:56:15 UTC 2020



On 9/18/2020 5:15 PM, Ville Syrjälä wrote:
> On Fri, Sep 18, 2020 at 02:32:48PM +0300, Ville Syrjälä wrote:
>> On Fri, Sep 18, 2020 at 12:13:18PM +0530, Karthik B S wrote:
>>> +static bool has_async(int fd)
>>
>> has_async_flip() or has_async_page_flip() would be more descriptive.
>>
>>> +{
>>> +	struct drm_get_cap cap = { .capability = DRM_CAP_ASYNC_PAGE_FLIP };
>>> +
>>> +	igt_assert(drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap) == 0);
>>> +	return cap.value;
>>> +}
> 
> I guess having a generic has_drm_cap() helper might be
> nice throughout igt. Not sure if we have one already.

I don't see a helper for this currently. Will add this.

Thanks,
Karthik.B.S
> 


More information about the igt-dev mailing list