From: Pekka Paalanen <ppaalanen@gmail.com>
To: Simon Ser <contact@emersion.fr>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/uapi: document kernel capabilities
Date: Mon, 8 Mar 2021 10:20:43 +0200 [thread overview]
Message-ID: <20210308102043.7246e484@eldfell> (raw)
In-Reply-To: <zaAAWSkCocn-BDN-fR6Oi8EA0pCVhc3gwthb6JWi84iyYmdyCJ1sWiYgtw6POBH6TseYGQ9x-NWTPAJ-9gKfCFFWv9lyt6s0F7sRrEQW-yI=@emersion.fr>
[-- Attachment #1.1: Type: text/plain, Size: 2210 bytes --]
On Sat, 06 Mar 2021 10:56:49 +0000
Simon Ser <contact@emersion.fr> wrote:
> On Friday, March 5th, 2021 at 9:28 AM, Pekka Paalanen <ppaalanen@gmail.com> wrote:
>
> > > +/**
> > > + * DRM_CAP_DUMB_PREFERRED_DEPTH
> > > + *
> > > + * The preferred depth (in bits) for dumb buffers.
> >
> > this is literally depth, not bits per pixel, right?
>
> "Depth" is pretty ambiguous [1]. Maybe we should be more explicit here and say
> that it's the number of bits used to indicate the color of a single pixel? And
> maybe add a note that it's different from bits per pixel?
Yes, indeed. I was already assuming the meaning of "depth" in drmModeAddFB().
> [1]: https://en.wikipedia.org/wiki/Color_depth
>
> > > +/**
> > > + * DRM_CAP_PRIME
> > > + *
> > > + * Bitfield of supported PRIME sharing capabilities. See &DRM_PRIME_CAP_IMPORT
> > > + * and &DRM_PRIME_CAP_EXPORT.
> > > + */
> > > #define DRM_CAP_PRIME 0x5
> > > +/**
> > > + * DRM_PRIME_CAP_IMPORT
> > > + *
> > > + * If this bit is set in &DRM_CAP_PRIME, the driver supports importing PRIME
> > > + * buffers.
> >
> > What are PRIME buffers?
>
> Will add something like:
>
> PRIME buffers are exposed as dma-buf file descriptors. See
> Documentation/gpu/drm-mm.rst, section "PRIME Buffer Sharing".
Sounds good.
> > > + */
> > > #define DRM_PRIME_CAP_IMPORT 0x1
> > > +/**
> > > + * DRM_PRIME_CAP_EXPORT
> > > + *
> > > + * If this bit is set in &DRM_CAP_PRIME, the driver supports exporting PRIME
> > > + * buffers.
> >
> > What's the export API? HandleToFD()?
>
> Yes. Will add a note about it. Same for import.
Cool.
> > > +/**
> > > + * DRM_CAP_CRTC_IN_VBLANK_EVENT
> > > + *
> > > + * If set to 1, the kernel supports reporting the CRTC ID in
> > > + * &drm_event_vblank.crtc_id.
> >
> > Does this not apply also to the pageflip / atomic completion event?
>
> Both DRM_EVENT_VBLANK and DRM_EVENT_FLIP_COMPLETE use the struct
> drm_event_vblank, so yes. I'll mention these two events explicitly.
They do? Seems like I have been spoiled by the libdrm API that uses
drmEventContext with different callbacks for these things.
Thanks,
pq
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-03-08 8:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 22:10 [PATCH] drm/uapi: document kernel capabilities Simon Ser
2021-03-05 8:28 ` Pekka Paalanen
2021-03-06 10:56 ` Simon Ser
2021-03-08 8:20 ` Pekka Paalanen [this message]
2021-03-08 12:33 ` Simon Ser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210308102043.7246e484@eldfell \
--to=ppaalanen@gmail.com \
--cc=contact@emersion.fr \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.