-struct brw_wm_prog_key {
- uint8_t iz_lookup;
- GLuint stats_wm:1;
- GLuint flat_shade:1;
- GLuint nr_color_regions:5;
- GLuint sample_alpha_to_coverage:1;
- GLuint render_to_fbo:1;
- GLuint clamp_fragment_color:1;
- GLuint line_aa:2;
-
- GLushort drawable_height;
- GLbitfield64 input_slots_valid;
- GLuint program_string_id:32;
-
- struct brw_sampler_prog_key_data tex;
-};
-
-struct brw_wm_compile {
- struct brw_wm_prog_key key;
- struct brw_wm_prog_data prog_data;
-
- uint8_t source_depth_reg;
- uint8_t source_w_reg;
- uint8_t aa_dest_stencil_reg;
- uint8_t dest_depth_reg;
- uint8_t barycentric_coord_reg[BRW_WM_BARYCENTRIC_INTERP_MODE_COUNT];
- uint8_t nr_payload_regs;
- GLuint source_depth_to_render_target:1;
- GLuint runtime_check_aads_emit:1;
-
- GLuint last_scratch;
-};
-
-/**
- * Compile a fragment shader.
- *
- * Returns the final assembly and the program's size.
- */
-const unsigned *brw_wm_fs_emit(struct brw_context *brw,
- struct brw_wm_compile *c,
- struct gl_fragment_program *fp,
- struct gl_shader_program *prog,
- unsigned *final_assembly_size);
-
-GLboolean brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog);
-struct gl_shader *brw_new_shader(struct gl_context *ctx, GLuint name, GLuint type);
-struct gl_shader_program *brw_new_shader_program(struct gl_context *ctx, GLuint name);