13464ebd5Sriastradh/* 23464ebd5Sriastradh * Mesa 3-D graphics library 33464ebd5Sriastradh * 43464ebd5Sriastradh * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 53464ebd5Sriastradh * 63464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 73464ebd5Sriastradh * copy of this software and associated documentation files (the "Software"), 83464ebd5Sriastradh * to deal in the Software without restriction, including without limitation 93464ebd5Sriastradh * the rights to use, copy, modify, merge, publish, distribute, sublicense, 103464ebd5Sriastradh * and/or sell copies of the Software, and to permit persons to whom the 113464ebd5Sriastradh * Software is furnished to do so, subject to the following conditions: 123464ebd5Sriastradh * 133464ebd5Sriastradh * The above copyright notice and this permission notice shall be included 143464ebd5Sriastradh * in all copies or substantial portions of the Software. 153464ebd5Sriastradh * 163464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 173464ebd5Sriastradh * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 183464ebd5Sriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 233464ebd5Sriastradh */ 243464ebd5Sriastradh 253464ebd5Sriastradh 263464ebd5Sriastradh#ifndef PROGRAMOPT_H 273464ebd5Sriastradh#define PROGRAMOPT_H 1 283464ebd5Sriastradh 2901e04c3fSmrg#include "main/glheader.h" 3001e04c3fSmrg#include "prog_parameter.h" 3101e04c3fSmrg 3201e04c3fSmrg 3301e04c3fSmrg#ifdef __cplusplus 3401e04c3fSmrgextern "C" { 3501e04c3fSmrg#endif 3601e04c3fSmrg 3701e04c3fSmrgstruct gl_context; 3801e04c3fSmrgstruct gl_program; 393464ebd5Sriastradh 403464ebd5Sriastradhextern void 4101e04c3fSmrg_mesa_insert_mvp_code(struct gl_context *ctx, struct gl_program *vprog); 423464ebd5Sriastradh 433464ebd5Sriastradhextern void 4401e04c3fSmrg_mesa_append_fog_code(struct gl_context *ctx, struct gl_program *fprog, 4501e04c3fSmrg GLenum fog_mode, GLboolean saturate); 463464ebd5Sriastradh 473464ebd5Sriastradhextern void 483464ebd5Sriastradh_mesa_count_texture_indirections(struct gl_program *prog); 493464ebd5Sriastradh 503464ebd5Sriastradhextern void 513464ebd5Sriastradh_mesa_count_texture_instructions(struct gl_program *prog); 523464ebd5Sriastradh 533464ebd5Sriastradhextern void 543464ebd5Sriastradh_mesa_remove_output_reads(struct gl_program *prog, gl_register_file type); 553464ebd5Sriastradh 563464ebd5Sriastradhextern void 5701e04c3fSmrg_mesa_program_fragment_position_to_sysval(struct gl_program *prog); 583464ebd5Sriastradh 5901e04c3fSmrg#ifdef __cplusplus 6001e04c3fSmrg} 6101e04c3fSmrg#endif 623464ebd5Sriastradh 633464ebd5Sriastradh#endif /* PROGRAMOPT_H */ 64