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

Ville Syrjälä ville.syrjala at linux.intel.com
Fri Sep 18 11:45:49 UTC 2020


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.

-- 
Ville Syrjälä
Intel


More information about the igt-dev mailing list