1c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell/************************************************************************** 2c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * 3c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. 4c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * All Rights Reserved. 5c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * 6c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 7c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * copy of this software and associated documentation files (the 8c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * "Software"), to deal in the Software without restriction, including 9c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * without limitation the rights to use, copy, modify, merge, publish, 10c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * distribute, sub license, and/or sell copies of the Software, and to 11c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * permit persons to whom the Software is furnished to do so, subject to 12c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * the following conditions: 13c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * 14c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * The above copyright notice and this permission notice (including the 15c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * next paragraph) shall be included in all copies or substantial portions 16c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * of the Software. 17c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * 18c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 22c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell * 26c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell **************************************************************************/ 27c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell#ifndef SP_SETUP_H 28c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell#define SP_SETUP_H 29c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 30c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwellstruct setup_context; 31c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwellstruct softpipe_context; 32c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 33871d39ec8c168fa58d8758013e99da63fa58111dKeith Whitwellvoid 349a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulsp_setup_tri( struct setup_context *setup, 35871d39ec8c168fa58d8758013e99da63fa58111dKeith Whitwell const float (*v0)[4], 36871d39ec8c168fa58d8758013e99da63fa58111dKeith Whitwell const float (*v1)[4], 37871d39ec8c168fa58d8758013e99da63fa58111dKeith Whitwell const float (*v2)[4] ); 38c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 39c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwellvoid 409a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulsp_setup_line(struct setup_context *setup, 41c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell const float (*v0)[4], 42c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell const float (*v1)[4]); 43c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 44c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwellvoid 459a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulsp_setup_point( struct setup_context *setup, 46c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell const float (*v0)[4] ); 47c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 48c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 499a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulstruct setup_context *sp_setup_create_context( struct softpipe_context *softpipe ); 509a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulvoid sp_setup_prepare( struct setup_context *setup ); 519a0ff33ad60cb63d430c4f93f6531f7aa2ec2ba8Brian Paulvoid sp_setup_destroy_context( struct setup_context *setup ); 52c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell 53c95dcc49629b72b95826e87e067d7a48753605fbKeith Whitwell#endif 54