diff options
author | Adam Jackson <ajax@redhat.com> | 2016-03-03 16:50:02 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-10 15:55:52 -0500 |
commit | a18238877bbf9aab95843d849a6f434275e9cd6c (patch) | |
tree | f8db30b81c3df8bb3e0bb8fa38a53e3faaa409d0 /glx | |
parent | 47c1d6b7abcfb1c6b478367bbc2e869c91485bc0 (diff) |
glx: Add GLX_SCREEN to the GetDrawableAttributes response
libglvnd would like to use this to map from drawable to screen, so it
can know which driver to dispatch to. Refer to the spec proposal here:
https://lists.freedesktop.org/archives/mesa-dev/2016-March/109543.html
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxcmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c index d8a144fee..139432e5e 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -1931,7 +1931,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId) xGLXGetDrawableAttributesReply reply; __GLXdrawable *pGlxDraw = NULL; DrawablePtr pDraw; - CARD32 attributes[14]; + CARD32 attributes[16]; int num = 0, error; if (!validGlxDrawable(client, drawId, GLX_DRAWABLE_ANY, @@ -1954,6 +1954,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId) ATTRIB(GLX_Y_INVERTED_EXT, GL_FALSE); ATTRIB(GLX_WIDTH, pDraw->width); ATTRIB(GLX_HEIGHT, pDraw->height); + ATTRIB(GLX_SCREEN, pDraw->pScreen->myNum); if (pGlxDraw) { ATTRIB(GLX_TEXTURE_TARGET_EXT, pGlxDraw->target == GL_TEXTURE_2D ? |