13464ebd5Sriastradh/************************************************************************** 23464ebd5Sriastradh * 3af69d88dSmrg * Copyright 2008 VMware, Inc. 43464ebd5Sriastradh * Copyright 2010 VMware, Inc. 53464ebd5Sriastradh * All Rights Reserved. 63464ebd5Sriastradh * 73464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 83464ebd5Sriastradh * copy of this software and associated documentation files (the 93464ebd5Sriastradh * "Software"), to deal in the Software without restriction, including 103464ebd5Sriastradh * without limitation the rights to use, copy, modify, merge, publish, 113464ebd5Sriastradh * distribute, sub license, and/or sell copies of the Software, and to 123464ebd5Sriastradh * permit persons to whom the Software is furnished to do so, subject to 133464ebd5Sriastradh * the following conditions: 143464ebd5Sriastradh * 153464ebd5Sriastradh * The above copyright notice and this permission notice (including the 163464ebd5Sriastradh * next paragraph) shall be included in all copies or substantial portions 173464ebd5Sriastradh * of the Software. 183464ebd5Sriastradh * 193464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 203464ebd5Sriastradh * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 213464ebd5Sriastradh * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 22af69d88dSmrg * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 233464ebd5Sriastradh * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 243464ebd5Sriastradh * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 253464ebd5Sriastradh * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 263464ebd5Sriastradh * 273464ebd5Sriastradh **************************************************************************/ 283464ebd5Sriastradh 293464ebd5Sriastradh#ifndef U_PSTIPPLE_H 303464ebd5Sriastradh#define U_PSTIPPLE_H 313464ebd5Sriastradh 323464ebd5Sriastradh#include "pipe/p_compiler.h" 333464ebd5Sriastradh 347ec681f3Smrg#ifdef __cplusplus 357ec681f3Smrgextern "C" { 367ec681f3Smrg#endif 377ec681f3Smrg 383464ebd5Sriastradhstruct pipe_context; 393464ebd5Sriastradhstruct pipe_resource; 403464ebd5Sriastradhstruct pipe_shader_state; 413464ebd5Sriastradh 423464ebd5Sriastradh 4301e04c3fSmrgextern void 4401e04c3fSmrgutil_pstipple_update_stipple_texture(struct pipe_context *pipe, 4501e04c3fSmrg struct pipe_resource *tex, 4601e04c3fSmrg const uint32_t pattern[32]); 4701e04c3fSmrg 483464ebd5Sriastradhextern struct pipe_resource * 493464ebd5Sriastradhutil_pstipple_create_stipple_texture(struct pipe_context *pipe, 503464ebd5Sriastradh const uint32_t pattern[32]); 513464ebd5Sriastradh 523464ebd5Sriastradhextern struct pipe_sampler_view * 533464ebd5Sriastradhutil_pstipple_create_sampler_view(struct pipe_context *pipe, 543464ebd5Sriastradh struct pipe_resource *tex); 553464ebd5Sriastradh 563464ebd5Sriastradhextern void * 573464ebd5Sriastradhutil_pstipple_create_sampler(struct pipe_context *pipe); 583464ebd5Sriastradh 5901e04c3fSmrgstruct tgsi_token * 6001e04c3fSmrgutil_pstipple_create_fragment_shader(const struct tgsi_token *tokens, 6101e04c3fSmrg unsigned *samplerUnitOut, 6201e04c3fSmrg unsigned fixed_unit, 6301e04c3fSmrg unsigned wincoordFile); 643464ebd5Sriastradh 657ec681f3Smrg#ifdef __cplusplus 667ec681f3Smrg} 677ec681f3Smrg#endif 683464ebd5Sriastradh 693464ebd5Sriastradh#endif 70