1 2 #ifndef SVGA_LINK_H 3 #define SVGA_LINK_H 4 5 #include "pipe/p_defines.h" 6 #include "tgsi/tgsi_scan.h" 7 8 struct svga_context; 9 10 struct shader_linkage 11 { 12 unsigned num_inputs; /* number of inputs in the current shader */ 13 unsigned position_index; /* position register index */ 14 unsigned input_map_max; /* highest index of mapped inputs */ 15 uint8_t input_map[PIPE_MAX_SHADER_INPUTS]; 16 17 struct { 18 unsigned num_outputs; 19 uint8_t output_map[PIPE_MAX_SHADER_OUTPUTS]; 20 } prevShader; 21 }; 22 23 void 24 svga_link_shaders(const struct tgsi_shader_info *outshader_info, 25 const struct tgsi_shader_info *inshader_info, 26 struct shader_linkage *linkage); 27 28 #endif /* SVGA_LINK_H */ 29