egl: add EGL_WAYLAND_Y_INVERTED_WL attribute
This enables querying of wl_buffer's orientation
This commit is contained in:
parent
9ad6dda21e
commit
1281a90532
|
@ -76,6 +76,10 @@ New Tokens
|
||||||
EGL_TEXTURE_Y_UV_WL 0x31D8
|
EGL_TEXTURE_Y_UV_WL 0x31D8
|
||||||
EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
||||||
|
|
||||||
|
Accepted in the <attribute> parameter of eglQueryWaylandBufferWL:
|
||||||
|
|
||||||
|
EGL_WAYLAND_Y_INVERTED_WL 0x31DB
|
||||||
|
|
||||||
|
|
||||||
Additions to the EGL 1.4 Specification:
|
Additions to the EGL 1.4 Specification:
|
||||||
|
|
||||||
|
@ -157,6 +161,16 @@ Additions to the EGL 1.4 Specification:
|
||||||
Further, eglQueryWaylandBufferWL accepts attributes EGL_WIDTH and
|
Further, eglQueryWaylandBufferWL accepts attributes EGL_WIDTH and
|
||||||
EGL_HEIGHT to query the width and height of the wl_buffer.
|
EGL_HEIGHT to query the width and height of the wl_buffer.
|
||||||
|
|
||||||
|
Also, eglQueryWaylandBufferWL may accept
|
||||||
|
EGL_WAYLAND_Y_INVERTED_WL attribute to query orientation of
|
||||||
|
wl_buffer. If EGL_WAYLAND_Y_INVERTED_WL is supported
|
||||||
|
eglQueryWaylandBufferWL returns EGL_TRUE and value is a boolean
|
||||||
|
that tells if wl_buffer is y-inverted or not. If
|
||||||
|
EGL_WAYLAND_Y_INVERTED_WL is not supported
|
||||||
|
eglQueryWaylandBufferWL returns EGL_FALSE, in that case
|
||||||
|
wl_buffer should be treated as if value of
|
||||||
|
EGL_WAYLAND_Y_INVERTED_WL was EGL_TRUE.
|
||||||
|
|
||||||
Issues
|
Issues
|
||||||
|
|
||||||
Revision History
|
Revision History
|
||||||
|
@ -177,3 +191,6 @@ Revision History
|
||||||
Change eglQueryWaylandBufferWL to take a resource pointer to the
|
Change eglQueryWaylandBufferWL to take a resource pointer to the
|
||||||
buffer instead of a pointer to a struct wl_buffer, as the latter has
|
buffer instead of a pointer to a struct wl_buffer, as the latter has
|
||||||
been deprecated. (Ander Conselvan de Oliveira)
|
been deprecated. (Ander Conselvan de Oliveira)
|
||||||
|
Version 6, September 16, 2013
|
||||||
|
Add EGL_WAYLAND_Y_INVERTED_WL attribute to allow specifying
|
||||||
|
wl_buffer's orientation.
|
||||||
|
|
|
@ -115,6 +115,8 @@ typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDRMDISPLAYMESA) (int fd);
|
||||||
#define EGL_WAYLAND_BUFFER_WL 0x31D5 /* eglCreateImageKHR target */
|
#define EGL_WAYLAND_BUFFER_WL 0x31D5 /* eglCreateImageKHR target */
|
||||||
#define EGL_WAYLAND_PLANE_WL 0x31D6 /* eglCreateImageKHR target */
|
#define EGL_WAYLAND_PLANE_WL 0x31D6 /* eglCreateImageKHR target */
|
||||||
|
|
||||||
|
#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB /* eglQueryWaylandBufferWL attribute */
|
||||||
|
|
||||||
#define EGL_TEXTURE_Y_U_V_WL 0x31D7
|
#define EGL_TEXTURE_Y_U_V_WL 0x31D7
|
||||||
#define EGL_TEXTURE_Y_UV_WL 0x31D8
|
#define EGL_TEXTURE_Y_UV_WL 0x31D8
|
||||||
#define EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
#define EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
||||||
|
|
Loading…
Reference in New Issue