From: Frank Binns <frank.binns@imgtec.com>
To: dri-devel@lists.freedesktop.org
Cc: rufus.hamade@imgtec.com
Subject: Re: [PATCH libdrm 1/2] Rename DRM_NODE_RENDER to DRM_NODE_PRIMARY
Date: Fri, 23 Jan 2015 16:17:29 +0000 [thread overview]
Message-ID: <54C27419.40408@imgtec.com> (raw)
In-Reply-To: <1421244471-31081-1-git-send-email-frank.binns@imgtec.com>
Ping
On 14/01/15 14:07, Frank Binns wrote:
> Now that there are render nodes it doesn't seem appropriate for the type of
> the card nodes to be DRM_NODE_RENDER. For this reason, rename this type to
> DRM_NODE_PRIMARY as this name better represents the purpose of these nodes.
>
> Signed-off-by: Frank Binns <frank.binns@imgtec.com>
> ---
> tests/dristat.c | 2 +-
> xf86drm.c | 10 +++++-----
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/tests/dristat.c b/tests/dristat.c
> index 4f2ee80..449aa24 100644
> --- a/tests/dristat.c
> +++ b/tests/dristat.c
> @@ -268,7 +268,7 @@ int main(int argc, char **argv)
>
> for (i = 0; i < 16; i++) if (!minor || i == minor) {
> sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, i);
> - fd = drmOpenMinor(i, 1, DRM_NODE_RENDER);
> + fd = drmOpenMinor(i, 1, DRM_NODE_PRIMARY);
> if (fd >= 0) {
> printf("%s\n", buf);
> if (mask & DRM_BUSID) getbusid(fd);
> diff --git a/xf86drm.c b/xf86drm.c
> index d900b4b..a23d029 100644
> --- a/xf86drm.c
> +++ b/xf86drm.c
> @@ -86,7 +86,7 @@
> #define DRM_MSG_VERBOSITY 3
>
> #define DRM_NODE_CONTROL 0
> -#define DRM_NODE_RENDER 1
> +#define DRM_NODE_PRIMARY 1
>
> static drmServerInfoPtr drm_server_info;
>
> @@ -444,7 +444,7 @@ int drmAvailable(void)
> int retval = 0;
> int fd;
>
> - if ((fd = drmOpenMinor(0, 1, DRM_NODE_RENDER)) < 0) {
> + if ((fd = drmOpenMinor(0, 1, DRM_NODE_PRIMARY)) < 0) {
> #ifdef __linux__
> /* Try proc for backward Linux compatibility */
> if (!access("/proc/dri/0", R_OK))
> @@ -485,7 +485,7 @@ static int drmOpenByBusid(const char *busid)
>
> drmMsg("drmOpenByBusid: Searching for BusID %s\n", busid);
> for (i = 0; i < DRM_MAX_MINOR; i++) {
> - fd = drmOpenMinor(i, 1, DRM_NODE_RENDER);
> + fd = drmOpenMinor(i, 1, DRM_NODE_PRIMARY);
> drmMsg("drmOpenByBusid: drmOpenMinor returns %d\n", fd);
> if (fd >= 0) {
> /* We need to try for 1.4 first for proper PCI domain support
> @@ -547,7 +547,7 @@ static int drmOpenByName(const char *name)
> * already in use. If it's in use it will have a busid assigned already.
> */
> for (i = 0; i < DRM_MAX_MINOR; i++) {
> - if ((fd = drmOpenMinor(i, 1, DRM_NODE_RENDER)) >= 0) {
> + if ((fd = drmOpenMinor(i, 1, DRM_NODE_PRIMARY)) >= 0) {
> if ((version = drmGetVersion(fd))) {
> if (!strcmp(version->name, name)) {
> drmFreeVersion(version);
> @@ -591,7 +591,7 @@ static int drmOpenByName(const char *name)
> if (*pt) { /* Found busid */
> return drmOpenByBusid(++pt);
> } else { /* No busid */
> - return drmOpenDevice(strtol(devstring, NULL, 0),i, DRM_NODE_RENDER);
> + return drmOpenDevice(strtol(devstring, NULL, 0),i, DRM_NODE_PRIMARY);
> }
> }
> }
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-01-23 16:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 14:07 [PATCH libdrm 1/2] Rename DRM_NODE_RENDER to DRM_NODE_PRIMARY Frank Binns
2015-01-14 14:07 ` [PATCH libdrm 2/2] Add new drmOpenRender function Frank Binns
2015-01-23 16:17 ` Frank Binns [this message]
2015-01-23 23:07 ` [PATCH libdrm 1/2] Rename DRM_NODE_RENDER to DRM_NODE_PRIMARY Emil Velikov
2015-01-23 16:31 ` Rob Clark
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=54C27419.40408@imgtec.com \
--to=frank.binns@imgtec.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=rufus.hamade@imgtec.com \
/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.