00001 /************************************************************************** 00002 * 00003 * Copyright 2008 Tungsten Graphics, Inc., Bismarck, ND., USA 00004 * All Rights Reserved. 00005 * 00006 * Permission is hereby granted, free of charge, to any person obtaining a 00007 * copy of this software and associated documentation files (the 00008 * "Software"), to deal in the Software without restriction, including 00009 * without limitation the rights to use, copy, modify, merge, publish, 00010 * distribute, sub license, and/or sell copies of the Software, and to 00011 * permit persons to whom the Software is furnished to do so, subject to 00012 * the following conditions: 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00015 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00016 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 00017 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, 00018 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 00019 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 00020 * USE OR OTHER DEALINGS IN THE SOFTWARE. 00021 * 00022 * The above copyright notice and this permission notice (including the 00023 * next paragraph) shall be included in all copies or substantial portions 00024 * of the Software. 00025 * 00026 * 00027 **************************************************************************/ 00028 00035 #include "pipe/p_compiler.h" 00036 00037 #include "st_winsys.h" 00038 00039 00040 /* XXX: Force init_gallium symbol to be linked */ 00041 extern void init_gallium(void); 00042 void (*force_init_gallium_linkage)(void) = &init_gallium; 00043 00044 00045 static struct pipe_screen * 00046 st_hardpipe_screen_create(void) 00047 { 00048 return st_softpipe_winsys.screen_create(); 00049 } 00050 00051 00052 static struct pipe_context * 00053 st_hardpipe_context_create(struct pipe_screen *screen) 00054 { 00055 return st_softpipe_winsys.context_create(screen); 00056 } 00057 00058 00059 const struct st_winsys st_hardpipe_winsys = { 00060 &st_hardpipe_screen_create, 00061 &st_hardpipe_context_create 00062 };