X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fstate_trackers%2Fglx%2Fxlib%2Fxm_api.h;h=9684b5a17e1aa8ecb870934012ee928975590db5;hb=0ef50ecc69056273cb31ad4962b0dc952f7f7fed;hp=b0d837949bdfd70e01e717ab842c07a97c916bd1;hpb=dd404bc94f78a1766527becee03f8ef6ae3a799b;p=mesa.git diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.h b/src/gallium/state_trackers/glx/xlib/xm_api.h index b0d837949bd..9684b5a17e1 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.h +++ b/src/gallium/state_trackers/glx/xlib/xm_api.h @@ -1,6 +1,5 @@ /* * Mesa 3-D graphics library - * Version: 7.1 * * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * @@ -17,9 +16,10 @@ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. */ @@ -53,15 +53,15 @@ and create a window, you must do the following to use the X/Mesa interface: -#ifndef XMESA_H -#define XMESA_H +#ifndef XM_API_H +#define XM_API_H -#include "main/core.h" /* for gl_config */ +#include "main/mtypes.h" /* for gl_config */ #include "state_tracker/st_api.h" #include "os/os_thread.h" -#include "state_tracker/xlib_sw_winsys.h" +#include "state_tracker/xlibsw_api.h" # include # include @@ -76,7 +76,7 @@ typedef struct xmesa_visual *XMesaVisual; struct xmesa_display { - pipe_mutex mutex; + mtx_t mutex; Display *display; struct pipe_screen *screen; @@ -359,7 +359,7 @@ struct xmesa_buffer { extern const char * xmesa_get_name(void); -extern void +extern int xmesa_init(Display *dpy); extern XMesaBuffer @@ -378,13 +378,16 @@ xmesa_check_buffer_size(XMesaBuffer b); extern void xmesa_destroy_buffers_on_display(Display *dpy); -static INLINE GLuint +extern void +xmesa_close_display(Display *dpy); + +static inline GLuint xmesa_buffer_width(XMesaBuffer b) { return b->width; } -static INLINE GLuint +static inline GLuint xmesa_buffer_height(XMesaBuffer b) { return b->height;