1 /**************************************************************************
3 * Copyright 2013 Alexander von Gluck IV <kallisti5@unixzen.com>
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sub license, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
16 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
17 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
19 * USE OR OTHER DEALINGS IN THE SOFTWARE.
21 * The above copyright notice and this permission notice (including the
22 * next paragraph) shall be included in all copies or substantial portions
25 **************************************************************************/
28 #include "haiku-softpipe.h"
30 #include "util/u_debug.h"
31 #include "sw/hgl/hgl_sw_winsys.h"
33 #include "softpipe/sp_texture.h"
34 #include "softpipe/sp_screen.h"
35 #include "softpipe/sp_public.h"
38 #include "llvmpipe/lp_texture.h"
39 #include "llvmpipe/lp_screen.h"
40 #include "llvmpipe/lp_public.h"
45 hgl_sw_screen_create(void)
47 struct sw_winsys
* winsys
= hgl_create_sw_winsys();
48 struct pipe_screen
* screen
= NULL
;
54 screen
= llvmpipe_create_screen(winsys
);
56 screen
= softpipe_create_screen(winsys
);
60 winsys
->destroy(winsys
);