mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 16:30:10 +01:00
winsys/xlib: move xlib_create_sw_winsys within the winsys
v2: Rebase on top of vl_winsys_xsp.c removal Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> (v1)
This commit is contained in:
parent
b4e8572bca
commit
4f37e52f37
10 changed files with 21 additions and 15 deletions
|
|
@ -30,8 +30,8 @@
|
|||
#include "util/u_memory.h"
|
||||
#include "util/u_dl.h"
|
||||
#include "sw/null/null_sw_winsys.h"
|
||||
#include "sw/xlib/xlib_sw_winsys.h"
|
||||
#include "target-helpers/inline_sw_helper.h"
|
||||
#include "state_tracker/xlib_sw_winsys.h"
|
||||
|
||||
struct pipe_loader_sw_device {
|
||||
struct pipe_loader_device base;
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@
|
|||
#include <X11/Xlib.h>
|
||||
|
||||
|
||||
struct pipe_screen;
|
||||
struct pipe_resource;
|
||||
|
||||
/* This is what the xlib software winsys expects to find in the
|
||||
* "private" field of flush_frontbuffers().
|
||||
*
|
||||
|
|
@ -19,11 +16,4 @@ struct xlib_drawable {
|
|||
Drawable drawable;
|
||||
};
|
||||
|
||||
|
||||
/* This is the public interface to the ws/xlib module. Why isn't it
|
||||
* being defined in that directory?
|
||||
*/
|
||||
struct sw_winsys *xlib_create_sw_winsys( Display *display );
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -42,6 +42,7 @@ AM_CFLAGS += \
|
|||
$(LIBDRM_CFLAGS) \
|
||||
$(DRI2PROTO_CFLAGS)
|
||||
AM_CPPFLAGS += \
|
||||
-I$(top_srcdir)/src/gallium/winsys \
|
||||
-I$(top_srcdir)/src/gallium/drivers \
|
||||
-I$(top_srcdir)/src/glx \
|
||||
-I$(top_srcdir)/src/mapi \
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ env = env.Clone()
|
|||
|
||||
env.Append(CPPPATH = [
|
||||
'#/src/egl/main',
|
||||
'#/src/gallium/winsys',
|
||||
'#/src/gallium/winsys/sw',
|
||||
'.',
|
||||
])
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
#include "util/u_format.h"
|
||||
#include "pipe/p_compiler.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "state_tracker/xlib_sw_winsys.h"
|
||||
#include "state_tracker/xlibsw_api.h"
|
||||
#include "sw/xlib/xlib_sw_winsys.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "egllog.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ and create a window, you must do the following to use the X/Mesa interface:
|
|||
#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 <X11/Xlib.h>
|
||||
# include <X11/Xlibint.h>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ env.Append(LIBPATH = env['X11_LIBPATH'])
|
|||
env.Append(CPPPATH = [
|
||||
'#src/gallium/drivers',
|
||||
'#src/gallium/include/state_tracker',
|
||||
'#src/gallium/winsys',
|
||||
])
|
||||
|
||||
env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE', 'GALLIUM_GALAHAD'])
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@
|
|||
#include "util/u_memory.h"
|
||||
#include "target-helpers/inline_sw_helper.h"
|
||||
#include "target-helpers/inline_debug_helper.h"
|
||||
#include "state_tracker/xlib_sw_winsys.h"
|
||||
#include "state_tracker/xlibsw_api.h"
|
||||
#include "state_tracker/graw.h"
|
||||
#include "sw/xlib/xlib_sw_winsys.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@
|
|||
#include "util/u_math.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
#include "state_tracker/xlib_sw_winsys.h"
|
||||
#include "state_tracker/xlibsw_api.h"
|
||||
#include "xlib_sw_winsys.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
|
|
|
|||
10
src/gallium/winsys/sw/xlib/xlib_sw_winsys.h
Normal file
10
src/gallium/winsys/sw/xlib/xlib_sw_winsys.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef XLIB_SW_WINSYS
|
||||
#define XLIB_SW_WINSYS
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
struct sw_winsys;
|
||||
|
||||
struct sw_winsys *xlib_create_sw_winsys(Display *display);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue