mesa/src
Chad Versace 8044885182 egl: Unify the EGLint/EGLAttrib paths in eglCreateSync* (v3)
Pre-patch, there were two code paths for parsing EGLSync attribute
lists: one path for old-style EGLint lists, used by eglCreateSyncKHR,
and another for new-style EGLAttrib lists, used by eglCreateSync (1.5)
and eglCreateSync64 (EGL_KHR_cl_event2).

There were two attrib_list parsing functions,
  _eglParseSyncAttribList(_EGLSync *sync, const EGLint *attrib_list)
  _eglParseSyncAttribList64(_EGLSync *sync, const EGLattrib *attrib_list)
This patch unifies the two attrib_list parsing functions into one,
  _eglParseSyncAttribList(_EGLSync *sync, const EGLattrib *attrib_list)

Many internal EGLSync function signatures had *two* attrib_list
parameters to accomodate both code paths: one parameter was an EGLint
list and other an EGLAttrib list. At most one of the parameters was
allowed to be non-null.  This patch removes the `EGLint *attrib_list`
parameter, leaving only the `EGLAttrib *attrib_list` parameter, for all
internal EGLSync functions.

v2:
  - Consistently use condition (sizeof(int_list[0]) ==
    sizeof(attrib_list[0])). [for emil]
v3:
  - Don't double-unlock the display in eglCreateSyncKHR.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v2)
2016-10-10 09:54:11 -07:00
..
amd radv: Use proper header guards over 'pragma once' directives 2016-10-10 16:10:56 +11:00
compiler glsl: prohibit lowp, mediump precision on atomic_uint 2016-10-10 07:29:31 +03:00
egl egl: Unify the EGLint/EGLAttrib paths in eglCreateSync* (v3) 2016-10-10 09:54:11 -07:00
gallium nv50/ir: only stick one preret per function 2016-10-10 10:45:06 -04:00
gbm gbm: return appropriate error when queryImage() fails 2016-09-27 13:37:21 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx loader/dri3: add get_dri_screen() to the vtable 2016-10-07 11:11:44 +03:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel: Fix bash-specific redirection. 2016-10-10 09:50:05 -07:00
loader loader/dri3: import prime buffers in the currently-bound screen 2016-10-07 11:11:55 +03:00
mapi glapi: add entry points for GL_ARB_compute_variable_group_size 2016-10-07 00:18:57 +02:00
mesa mesa: throw error if bufSize negative in GetSynciv on OpenGL ES 2016-10-10 07:29:31 +03:00
util util: remove unused variable 2016-10-07 21:24:50 +11:00
Makefile.am radv: add initial non-conformant radv vulkan driver 2016-10-07 09:16:09 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00