All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pekka Paalanen <ppaalanen@gmail.com>
To: TAEHO NAM <kl0ud3v@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: Why eglGetDisplay(EGL_DEFAULT_DISPLAY) returns EGL_NO_DISPLAY?
Date: Sun, 29 Dec 2019 11:57:37 +0200	[thread overview]
Message-ID: <20191229115737.0db7fd7c@ferris.localdomain> (raw)
In-Reply-To: <CACcQa5=1vdWTUGfmN+oEY5rARTX5p6SvDbzQt+bzYHmZ=2hBgg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]

On Sat, 21 Dec 2019 02:05:59 +0900
TAEHO NAM <kl0ud3v@gmail.com> wrote:

> Hi, I'm new to dri-devel and sorry if this question doesn't fit here.
> In my code, the case 1 of getting eglDisplay using EGL_DEFAULT_DISPLAY
> failed, but, the case 2 succeeded.
> 
> // Case 1
> egl_.display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
> 
> // Case 2
> struct gbm_device * gbm_device_;
> gbm_device_ = gbm_create_device (drm _-> GetFD ());
> egl_.display = eglGetDisplay ((EGLNativeDisplayType) gbm_device_);
> 
> I don't know if EGL_DEFAULT_DISPLAY is missing or it's a problem with my
> machine.
> The output of lspci is :
> 
> VGA compatible controller: Intel Corporation Device 5906 (rev 02)
> 
> Thank you for any comments or links to related documents.

Hi,

please use the API that comes with
https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_platform_base.txt
and the related platform extensions for each particular platform.
I'm not sure if your issue comes from this, but without these the
EGL implementation cannot now what platform EGL_DEFAULT_DISPLAY
should refer to. It might as well be attempting to connect to an
X11 server instead of realizing you actually wanted to use GBM and
not X11.

See also
https://www.khronos.org/registry/EGL/extensions/MESA/EGL_MESA_platform_gbm.txt


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

      reply	other threads:[~2019-12-29  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-20 17:05 Why eglGetDisplay(EGL_DEFAULT_DISPLAY) returns EGL_NO_DISPLAY? TAEHO NAM
2019-12-29  9:57 ` Pekka Paalanen [this message]

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=20191229115737.0db7fd7c@ferris.localdomain \
    --to=ppaalanen@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kl0ud3v@gmail.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.