-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;
-
- GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */
-
- GLushort drawable_height;
- GLbitfield64 vp_outputs_written;
- GLuint program_string_id:32;
-
- struct brw_sampler_prog_key_data tex;
-};
-
-struct brw_wm_compile {
- struct brw_compile func;
- struct brw_wm_prog_key key;
- struct brw_wm_prog_data prog_data;
-
- struct brw_fragment_program *fp;
-
- 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 computes_depth:1; /* could be derived from program string */
- GLuint source_depth_to_render_target:1;
- GLuint runtime_check_aads_emit:1;
-
- GLuint last_scratch;
-
- GLuint dispatch_width;
-};
-
-void brw_wm_lookup_iz(struct intel_context *intel,
- struct brw_wm_compile *c);