Path: blob/21.2-virgl/src/gallium/auxiliary/tgsi/tgsi_build.h
4565 views
/**************************************************************************1*2* Copyright 2007 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef TGSI_BUILD_H28#define TGSI_BUILD_H2930#include "tgsi/tgsi_parse.h"3132#if defined __cplusplus33extern "C" {34#endif353637/*38* header39*/4041struct tgsi_header42tgsi_build_header( void );4344struct tgsi_processor45tgsi_build_processor(46unsigned processor,47struct tgsi_header *header );4849/*50* declaration51*/5253struct tgsi_full_declaration54tgsi_default_full_declaration( void );5556unsigned57tgsi_build_full_declaration(58const struct tgsi_full_declaration *full_decl,59struct tgsi_token *tokens,60struct tgsi_header *header,61unsigned maxsize );6263/*64* immediate65*/6667struct tgsi_full_immediate68tgsi_default_full_immediate( void );6970unsigned71tgsi_build_full_immediate(72const struct tgsi_full_immediate *full_imm,73struct tgsi_token *tokens,74struct tgsi_header *header,75unsigned maxsize );7677/*78* properties79*/8081struct tgsi_full_property82tgsi_default_full_property( void );8384unsigned85tgsi_build_full_property(86const struct tgsi_full_property *full_prop,87struct tgsi_token *tokens,88struct tgsi_header *header,89unsigned maxsize );9091/*92* instruction93*/9495struct tgsi_instruction96tgsi_default_instruction( void );9798struct tgsi_full_instruction99tgsi_default_full_instruction( void );100101unsigned102tgsi_build_full_instruction(103const struct tgsi_full_instruction *full_inst,104struct tgsi_token *tokens,105struct tgsi_header *header,106unsigned maxsize );107108struct tgsi_full_src_register109tgsi_full_src_register_from_dst(const struct tgsi_full_dst_register *dst);110111#if defined __cplusplus112}113#endif114115#endif /* TGSI_BUILD_H */116117118