lp_bld_sample_aos.h revision 3469715a8a171512cf9b528702e70393f01c6041
12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/************************************************************************** 22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * 32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * Copyright 2010 VMware, Inc. 42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * All Rights Reserved. 52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * 62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * Permission is hereby granted, free of charge, to any person obtaining a 72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * copy of this software and associated documentation files (the 82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * "Software"), to deal in the Software without restriction, including 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * without limitation the rights to use, copy, modify, merge, publish, 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * distribute, sub license, and/or sell copies of the Software, and to 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * permit persons to whom the Software is furnished to do so, subject to 122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * the following conditions: 13b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) * 1468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * The above copyright notice and this permission notice (including the 152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * next paragraph) shall be included in all copies or substantial portions 162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * of the Software. 172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * 182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 2368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * 262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) **************************************************************************/ 272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** 2968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * @file 3068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * Texture sampling -- SoA. 3168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * 3268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * @author Jose Fonseca <jfonseca@vmware.com> 3368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) * @author Brian Paul <brianp@vmware.com> 345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) */ 355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#ifndef LP_BLD_SAMPLE_AOS_H 375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define LP_BLD_SAMPLE_AOS_H 385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 3968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 4068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#include "lp_bld_sample.h" 4168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 4268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 4368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)void 4468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)lp_build_sample_aos(struct lp_build_sample_context *bld, 4568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) unsigned unit, 4668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef s, 4768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef t, 4868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef r, 4968043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef lod_ipart, 5068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef lod_fpart, 5168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef ilevel0, 5268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef ilevel1, 5368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) LLVMValueRef texel_out[4]); 5468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 5568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles) 5668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#endif /* LP_BLD_SAMPLE_AOS_H */ 5768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)