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