mesa/src/glx
Jon Turney 87173ded6e glx/windows: Fix compilation with -Werror-format
Fix compilation where the DWORD type is used with a format, after
-Werror-format added by c9c1e261.

Some Win32 API types are different fundamental types in the 32-bit and
64-bit versions. This problem is then further compounded by the fact
that whilst both 32-bit Cygwin and 32-bit MinGW use the ILP32 data
model, 64-bit MinGW uses the LLP64 data model, but 64-bit Cygwin uses
the LP64 data model. This makes it near impossible to write printf
format specifiers which are correct for all those targets.

In the Win32 API, DWORD is an unsigned, 32-bit type.  So, it is defined
in terms of an unsigned long, except in the LP64 data model used by
64-bit Cygwin, where it is an unsigned int.

It should always be safe to cast it to unsigned int and use %u or %x.

Reviewed-by: Eric Anholt <eric@anholt.net>
2019-06-07 11:28:48 -07:00
..
apple Delete autotools 2019-04-15 13:44:29 -07:00
tests delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
windows glx/windows: Fix compilation with -Werror-format 2019-06-07 11:28:48 -07:00
SConscript glx: make xf86vidmode mandatory for direct rendering 2018-11-20 11:13:20 +00:00
XF86dri.c
applegl_glx.c
clientattrib.c
clientinfo.c
compsize.c
create_context.c
dri2.c
dri2.h
dri2_glx.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri2_priv.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
dri3_glx.c glx: Fix error message when no driverName is available 2019-06-04 15:28:12 -07:00
dri3_priv.h dri3: Return the current swap interval from glXGetSwapIntervalMESA(). 2019-04-01 16:06:38 -07:00
dri_common.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri_common.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri_common_interop.c glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
dri_common_query_renderer.c glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
dri_glx.c glx: Move DRI extensions pointer loading to driOpenDriver(). 2018-11-16 15:38:18 -08:00
dri_sarea.h
drisw_glx.c drisw: Try harder to probe whether MIT-SHM works 2019-04-09 09:50:24 +10:00
drisw_priv.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
driwindows_glx.c
eval.c
g_glxglvnddispatchfuncs.c
g_glxglvnddispatchindices.h
glx_error.c Revert "glx: Fix synthetic error generation in __glXSendError" 2019-05-08 13:16:44 +10:00
glx_error.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
glx_pbuffer.c
glx_query.c
glxclient.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxcmds.c glx: Fix compilation with GLX_USE_WINDOWSGL 2018-12-15 13:49:24 +00:00
glxconfig.c
glxconfig.h
glxcurrent.c glx: Don't allow glXMakeContextCurrent() with only one valid drawable 2018-07-09 12:03:18 -04:00
glxext.c glx: be explicit about when mapping X <> GLX visuals 2018-11-01 00:05:43 +00:00
glxextensions.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxextensions.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxglvnd.c
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c
indirect_vertex_array.h
indirect_vertex_array_priv.h
indirect_vertex_program.c
indirect_window_pos.c
meson.build glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
packrender.h
packsingle.h
pixel.c
pixelstore.c
query_renderer.c
render2.c
renderpix.c
single2.c
singlepix.c
vertarr.c
xf86dri.h
xf86dristr.h
xfont.c