summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/gallivm_p.h
blob: 2c6e5e8f5f2372794272e56520db4d982fced28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef GALLIVM_P_H
#define GALLIVM_P_H

#ifdef MESA_LLVM

namespace llvm {
   class Module;
}

#if defined __cplusplus
extern "C" {
#endif

enum gallivm_shader_type;
enum gallivm_vector_layout;

struct gallivm_interpolate {
   int attrib;
   int chan;
   int type;
};

struct gallivm_ir {
   llvm::Module *module;
   int id;
   enum gallivm_shader_type type;
   enum gallivm_vector_layout layout;
   int num_components;
   int   num_consts;

   //FIXME: this might not be enough for some shaders
   struct gallivm_interpolate interpolators[32*4];
   int   num_interp;
};

struct gallivm_prog {
   llvm::Module *module;
   void *function;

   int   id;
   enum gallivm_shader_type type;

   int   num_consts;

   //FIXME: this might not be enough for some shaders
   struct gallivm_interpolate interpolators[32*4];
   int   num_interp;
};

#endif /* MESA_LLVM */

#if defined __cplusplus
} // extern "C"
#endif

#endif