All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chad Versace <chad.versace@linux.intel.com>
To: "mesa-dev@lists.freedesktop.org" <mesa-dev@lists.freedesktop.org>,
	dri-devel@lists.freedesktop.org, wayland@lists.freedesktop.org,
	xorg-devel@lists.x.org
Subject: Requesting feedback on disallowing handle attribute values in EGLint attribute lists
Date: Wed, 09 Oct 2013 10:01:03 -0700	[thread overview]
Message-ID: <52558BCF.60503@linux.intel.com> (raw)

Khronos is proposing a change affecting EGL attribute lists, and they
are requesting feedback on this forum thread [1]. They have specifically
requested feedback from the opensource community.

[1] 
http://www.khronos.org/message_boards/showthread.php/9138-Requesting-feedback-on-disallowing-handle-attribute-values-in-EGLint-attribute-lists

The root of the problem is that the EGL headers define EGLint to be
32-bit, but the EGL spec states that EGLint is large enough to hold
pointers and "handles". This, of course, causes a conflict on 64-bit
platforms.

Don't worry. Khronos does not intend to break the EGL ABI by redefining
EGLint as 64-bit.

The EGL spec authors' intention was that EGL attribute lists (whose type
is an array of EGLint) should be able to hold pointer values.  In
reality, there are only two instances where an attribute list needs to
hold a pointer: the EGL_MATCH_NATIVE_PIXMAP attribute to eglChooseConfig
and the EGL_CL_EVENT_HANDLE_KHR attribute to eglCreateSyncKHR for
EGL_KHR_cl_event.

The take-away message is: Don't try to put pointers in EGLint attribute
lists, because it will break on 64-bit platforms. For future EGL
extensions, Khronos is planning to define a new EGLattrib type for
attribute lists, which will properly hold a pointer.

                 reply	other threads:[~2013-10-09 17:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=52558BCF.60503@linux.intel.com \
    --to=chad.versace@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=mesa-dev@lists.freedesktop.org \
    --cc=wayland@lists.freedesktop.org \
    --cc=xorg-devel@lists.x.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.