Added a missed header file.
Pointed by Chris, we must add xorg-server.h at the top of each file before we include any other xorg header files. Otherwise, it may cause incorrect XID length. This commit also fixes one compilation warning in X86_64 platform. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
		
							parent
							
								
									90eaac96ae
								
							
						
					
					
						commit
						7b2310834d
					
				| 
						 | 
					@ -30,6 +30,7 @@
 | 
				
			||||||
#ifdef HAVE_DIX_CONFIG_H
 | 
					#ifdef HAVE_DIX_CONFIG_H
 | 
				
			||||||
#include <dix-config.h>
 | 
					#include <dix-config.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					#include <xorg-server.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include <fcntl.h>
 | 
					#include <fcntl.h>
 | 
				
			||||||
#include <sys/ioctl.h>
 | 
					#include <sys/ioctl.h>
 | 
				
			||||||
| 
						 | 
					@ -129,7 +130,7 @@ _glamor_egl_create_image(struct glamor_egl_screen_private *glamor_egl,
 | 
				
			||||||
	image = glamor_egl->egl_create_image_khr(glamor_egl->display,
 | 
						image = glamor_egl->egl_create_image_khr(glamor_egl->display,
 | 
				
			||||||
						 glamor_egl->context,
 | 
											 glamor_egl->context,
 | 
				
			||||||
						 EGL_DRM_BUFFER_MESA,
 | 
											 EGL_DRM_BUFFER_MESA,
 | 
				
			||||||
						 (void *) name, attribs);
 | 
											 (void *) (uintptr_t)name, attribs);
 | 
				
			||||||
	if (image == EGL_NO_IMAGE_KHR)
 | 
						if (image == EGL_NO_IMAGE_KHR)
 | 
				
			||||||
		return EGL_NO_IMAGE_KHR;
 | 
							return EGL_NO_IMAGE_KHR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue