13464ebd5Sriastradh/* 23464ebd5Sriastradh * Copyright © 2009 Intel Corporation 33464ebd5Sriastradh * 43464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 53464ebd5Sriastradh * copy of this software and associated documentation files (the "Software"), 63464ebd5Sriastradh * to deal in the Software without restriction, including without limitation 73464ebd5Sriastradh * the rights to use, copy, modify, merge, publish, distribute, sublicense, 83464ebd5Sriastradh * and/or sell copies of the Software, and to permit persons to whom the 93464ebd5Sriastradh * Software is furnished to do so, subject to the following conditions: 103464ebd5Sriastradh * 113464ebd5Sriastradh * The above copyright notice and this permission notice (including the next 123464ebd5Sriastradh * paragraph) shall be included in all copies or substantial portions of the 133464ebd5Sriastradh * Software. 143464ebd5Sriastradh * 153464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 163464ebd5Sriastradh * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 173464ebd5Sriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 183464ebd5Sriastradh * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 193464ebd5Sriastradh * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 203464ebd5Sriastradh * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 213464ebd5Sriastradh * DEALINGS IN THE SOFTWARE. 223464ebd5Sriastradh */ 233464ebd5Sriastradh 243464ebd5Sriastradh/** 253464ebd5Sriastradh * \file prog_parameter_layout.h 263464ebd5Sriastradh * \brief Helper functions to layout storage for program parameters 273464ebd5Sriastradh * 283464ebd5Sriastradh * \author Ian Romanick <ian.d.romanick@intel.com> 293464ebd5Sriastradh */ 303464ebd5Sriastradh 313464ebd5Sriastradh 323464ebd5Sriastradh#ifndef PROG_PARAMETER_LAYOUT_H 333464ebd5Sriastradh#define PROG_PARAMETER_LAYOUT_H 343464ebd5Sriastradh 353464ebd5Sriastradhextern unsigned _mesa_combine_swizzles(unsigned base, unsigned applied); 363464ebd5Sriastradh 373464ebd5Sriastradhstruct asm_parser_state; 383464ebd5Sriastradh 393464ebd5Sriastradhextern GLboolean _mesa_layout_parameters(struct asm_parser_state *state); 403464ebd5Sriastradh 413464ebd5Sriastradh#endif /* PROG_PARAMETER_LAYOUT_H */ 42