lp_setup_point.c revision 5286dd701640976ffc328e8e85fb3830746851a1
1415b271b5100d64579690111bc8eb549866865a7Keith Whitwell/************************************************************************** 2415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * 3415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. 4415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * All Rights Reserved. 5415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * 6415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 7415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * copy of this software and associated documentation files (the 8415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * "Software"), to deal in the Software without restriction, including 9415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * without limitation the rights to use, copy, modify, merge, publish, 10415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * distribute, sub license, and/or sell copies of the Software, and to 11415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * permit persons to whom the Software is furnished to do so, subject to 12415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * the following conditions: 13415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * 14415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * The above copyright notice and this permission notice (including the 15415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * next paragraph) shall be included in all copies or substantial portions 16415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * of the Software. 17415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * 18415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 22415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * 26415b271b5100d64579690111bc8eb549866865a7Keith Whitwell **************************************************************************/ 27415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 28415b271b5100d64579690111bc8eb549866865a7Keith Whitwell/* 29415b271b5100d64579690111bc8eb549866865a7Keith Whitwell * Binning code for points 30415b271b5100d64579690111bc8eb549866865a7Keith Whitwell */ 31415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 32415b271b5100d64579690111bc8eb549866865a7Keith Whitwell#include "lp_setup_context.h" 33415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 345286dd701640976ffc328e8e85fb3830746851a1Hui Qi Taystatic void lp_setup_point( struct lp_setup_context *setup, 35415b271b5100d64579690111bc8eb549866865a7Keith Whitwell const float (*v0)[4] ) 36415b271b5100d64579690111bc8eb549866865a7Keith Whitwell{ 37415b271b5100d64579690111bc8eb549866865a7Keith Whitwell} 38415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 39415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 40415b271b5100d64579690111bc8eb549866865a7Keith Whitwellvoid 413160cbabccf1f7d8bdf344242507b9c3082f15c6José Fonsecalp_setup_choose_point( struct lp_setup_context *setup ) 42415b271b5100d64579690111bc8eb549866865a7Keith Whitwell{ 435286dd701640976ffc328e8e85fb3830746851a1Hui Qi Tay setup->point = lp_setup_point; 44415b271b5100d64579690111bc8eb549866865a7Keith Whitwell} 45415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 46415b271b5100d64579690111bc8eb549866865a7Keith Whitwell 47