radeonsi: remove unused and not useful variables
[mesa.git] / src / gallium / drivers / r300 / compiler / radeon_compiler.h
index 74594af23c2211e30695c5fe3c55ca23291cc6b8..e2710d848c5ac6cf938a1dabb4ae8b48b476fb01 100644 (file)
@@ -44,6 +44,7 @@ enum rc_program_type {
 struct radeon_compiler {
        struct memory_pool Pool;
        struct rc_program Program;
+       const struct rc_regalloc_state *regalloc_state;
        enum rc_program_type type;
        unsigned Debug:2;
        unsigned Error:1;
@@ -54,6 +55,7 @@ struct radeon_compiler {
        unsigned is_r500:1;
        unsigned has_half_swizzles:1;
        unsigned has_presub:1;
+       unsigned has_omod:1;
        unsigned disable_optimizations:1;
        unsigned max_temp_regs;
        unsigned max_constants;
@@ -76,7 +78,7 @@ struct radeon_compiler {
        unsigned initial_num_insts; /* Number of instructions at start. */
 };
 
-void rc_init(struct radeon_compiler * c);
+void rc_init(struct radeon_compiler * c, const struct rc_regalloc_state *rs);
 void rc_destroy(struct radeon_compiler * c);
 
 void rc_debug(struct radeon_compiler * c, const char * fmt, ...);
@@ -113,7 +115,6 @@ struct r300_fragment_program_compiler {
        struct rX00_fragment_program_code *code;
        /* Optional transformations and features. */
        struct r300_fragment_program_external_state state;
-       unsigned enable_shadow_ambient;
        /* Register corresponding to the depthbuffer. */
        unsigned OutputDepth;
        /* Registers corresponding to the four colorbuffers. */
@@ -136,11 +137,10 @@ struct r300_vertex_program_compiler {
        void * UserData;
        void (*SetHwInputOutput)(struct r300_vertex_program_compiler * c);
 
-       int PredicateIndex;
-       unsigned int PredicateMask;
 };
 
 void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* c);
+void rc_vert_fc(struct radeon_compiler *compiler, void *user);
 void r300_vertex_program_dump(struct radeon_compiler *compiler, void *user);
 
 struct radeon_compiler_pass {
@@ -159,6 +159,8 @@ struct rc_program_stats {
        unsigned num_alpha_insts;
        unsigned num_presub_ops;
        unsigned num_temp_regs;
+       unsigned num_omod_ops;
+       unsigned num_inline_literals;
 };
 
 void rc_get_stats(struct radeon_compiler *c, struct rc_program_stats *s);