summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
diff options
context:
space:
mode:
authorNicolai Hähnle <nhaehnle@gmail.com>2009-07-22 21:29:35 +0200
committerNicolai Hähnle <nhaehnle@gmail.com>2009-07-27 20:32:04 +0200
commit9cd5e3e13a1ed2415aa116e35bc9f550b07281c9 (patch)
tree54e7cfb9ef6c8b5388e0df82a9f92a2aad607924 /src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
parent647766494f657965c4ac7129d498918e89c9e912 (diff)
r300: Add radeon_compiler as a base for compilation-related tasks
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_compiler.h')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_compiler.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
index 92560b5d8a..6c5a2e5c8c 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
@@ -26,6 +26,8 @@
#include "main/mtypes.h"
#include "shader/prog_instruction.h"
+#include "memory_pool.h"
+
#define R300_PFS_MAX_ALU_INST 64
#define R300_PFS_MAX_TEX_INST 32
#define R300_PFS_MAX_TEX_INDIRECT 4
@@ -148,12 +150,20 @@ struct rX00_fragment_program_code {
gl_frag_attrib fog_attr;
};
+struct radeon_compiler {
+ struct memory_pool Pool;
+ GLboolean Debug;
+};
+
+void rc_init(struct radeon_compiler * c);
+void rc_destroy(struct radeon_compiler * c);
+
struct r300_fragment_program_compiler {
+ struct radeon_compiler Base;
struct rX00_fragment_program_code *code;
struct gl_program *program;
struct r300_fragment_program_external_state state;
GLboolean is_r500;
- GLboolean debug;
};
GLboolean r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c);