1848b8605Smrg/********************************************************** 2848b8605Smrg * Copyright 2008-2009 VMware, Inc. All rights reserved. 3848b8605Smrg * 4848b8605Smrg * Permission is hereby granted, free of charge, to any person 5848b8605Smrg * obtaining a copy of this software and associated documentation 6848b8605Smrg * files (the "Software"), to deal in the Software without 7848b8605Smrg * restriction, including without limitation the rights to use, copy, 8848b8605Smrg * modify, merge, publish, distribute, sublicense, and/or sell copies 9848b8605Smrg * of the Software, and to permit persons to whom the Software is 10848b8605Smrg * furnished to do so, subject to the following conditions: 11848b8605Smrg * 12848b8605Smrg * The above copyright notice and this permission notice shall be 13848b8605Smrg * included in all copies or substantial portions of the Software. 14848b8605Smrg * 15848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16848b8605Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17848b8605Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18848b8605Smrg * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 19848b8605Smrg * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20848b8605Smrg * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21848b8605Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22848b8605Smrg * SOFTWARE. 23848b8605Smrg * 24848b8605Smrg **********************************************************/ 25848b8605Smrg 26848b8605Smrg#ifndef SVGA_SWTNL_H 27848b8605Smrg#define SVGA_SWTNL_H 28848b8605Smrg 29848b8605Smrg#include "pipe/p_compiler.h" 30848b8605Smrg 31848b8605Smrgstruct svga_context; 32848b8605Smrgstruct pipe_context; 33848b8605Smrgstruct vbuf_render; 34848b8605Smrg 35848b8605Smrg 36848b8605Smrgboolean svga_init_swtnl( struct svga_context *svga ); 37848b8605Smrgvoid svga_destroy_swtnl( struct svga_context *svga ); 38848b8605Smrg 39848b8605Smrg 40848b8605Smrgenum pipe_error 41848b8605Smrgsvga_swtnl_draw_vbo(struct svga_context *svga, 42b8e80941Smrg const struct pipe_draw_info *info, 43b8e80941Smrg struct pipe_resource *indexbuf, 44b8e80941Smrg unsigned index_offset); 45848b8605Smrg 46848b8605Smrg 47848b8605Smrg#endif 48