101e04c3fSmrg 201e04c3fSmrg#ifndef SVGA_LINK_H 301e04c3fSmrg#define SVGA_LINK_H 401e04c3fSmrg 501e04c3fSmrg#include "pipe/p_defines.h" 601e04c3fSmrg 701e04c3fSmrgstruct svga_context; 801e04c3fSmrg 901e04c3fSmrgstruct shader_linkage 1001e04c3fSmrg{ 117ec681f3Smrg unsigned num_inputs; /* number of inputs in the current shader */ 127ec681f3Smrg unsigned position_index; /* position register index */ 1301e04c3fSmrg unsigned input_map_max; /* highest index of mapped inputs */ 1401e04c3fSmrg ubyte input_map[PIPE_MAX_SHADER_INPUTS]; 157ec681f3Smrg 167ec681f3Smrg struct { 177ec681f3Smrg unsigned num_outputs; 187ec681f3Smrg ubyte output_map[PIPE_MAX_SHADER_OUTPUTS]; 197ec681f3Smrg } prevShader; 2001e04c3fSmrg}; 2101e04c3fSmrg 2201e04c3fSmrgvoid 2301e04c3fSmrgsvga_link_shaders(const struct tgsi_shader_info *outshader_info, 2401e04c3fSmrg const struct tgsi_shader_info *inshader_info, 2501e04c3fSmrg struct shader_linkage *linkage); 2601e04c3fSmrg 2701e04c3fSmrg#endif /* SVGA_LINK_H */ 28