101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell/**************************************************************************
201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell *
301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * All Rights Reserved.
501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell *
601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a
701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * copy of this software and associated documentation files (the
801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * "Software"), to deal in the Software without restriction, including
901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * without limitation the rights to use, copy, modify, merge, publish,
1001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * distribute, sub license, and/or sell copies of the Software, and to
1101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * permit persons to whom the Software is furnished to do so, subject to
1201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * the following conditions:
1301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell *
1401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * The above copyright notice and this permission notice (including the
1501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * next paragraph) shall be included in all copies or substantial portions
1601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * of the Software.
1701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell *
1801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
2101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
2201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell *
2601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell **************************************************************************/
2701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
2801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell/* Authors:  Keith Whitwell <keith@tungstengraphics.com>
2901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell */
3001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
316ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwell#ifndef SP_FS_H
326ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwell#define SP_FS_H
3301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
3401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
35c534f11164bbecf25eb2b1e697f9511eceb0c86fBrian Paulstruct sp_fragment_shader_variant *
36c534f11164bbecf25eb2b1e697f9511eceb0c86fBrian Paulsoftpipe_create_fs_variant_exec(struct softpipe_context *softpipe,
37c534f11164bbecf25eb2b1e697f9511eceb0c86fBrian Paul                                const struct pipe_shader_state *templ);
38c534f11164bbecf25eb2b1e697f9511eceb0c86fBrian Paul
397c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwell
406ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwellstruct tgsi_interp_coef;
416ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwellstruct tgsi_exec_vector;
426ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwell
436ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwellvoid sp_setup_pos_vector(const struct tgsi_interp_coef *coef,
446ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwell			 float x, float y,
456ac2c1cc0cd1253ba2014d459010032127f185ecKeith Whitwell			 struct tgsi_exec_vector *quadpos);
4601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
4701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell
4801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#endif
49