extern const struct brw_tracked_state gen7_clip_state;
extern const struct brw_tracked_state gen7_depth_stencil_state_pointer;
extern const struct brw_tracked_state gen7_ps_state;
-extern const struct brw_tracked_state gen7_push_constant_alloc;
extern const struct brw_tracked_state gen7_samplers;
extern const struct brw_tracked_state gen7_sbe_state;
extern const struct brw_tracked_state gen7_sf_clip_viewport;
/* gen7_disable.c */
void gen7_disable_unused_stages(struct brw_context *brw);
+/* gen7_urb.c */
+void gen7_allocate_push_constants(struct brw_context *brw);
+
#ifdef __cplusplus
}
#endif
&brw_wm_prog,
/* Command packets: */
- &gen7_push_constant_alloc,
/* must do before binding table pointers, cc state ptrs */
&brw_state_base_address,
brw_upload_invariant_state(brw);
if (intel->gen >= 7) {
+ gen7_allocate_push_constants(brw);
gen7_disable_unused_stages(brw);
}
}
uint32_t prog_offset = params->get_wm_prog(brw, &prog_data);
gen6_blorp_emit_batch_head(brw, params);
- gen7_allocate_push_constants(brw);
gen6_emit_3dstate_multisample(brw, params->num_samples);
gen6_emit_3dstate_sample_mask(brw, params->num_samples, 1.0, false, ~0u);
gen6_blorp_emit_state_base_address(brw, params);
ADVANCE_BATCH();
}
-const struct brw_tracked_state gen7_push_constant_alloc = {
- .dirty = {
- .mesa = 0,
- .brw = BRW_NEW_CONTEXT,
- .cache = 0,
- },
- .emit = gen7_allocate_push_constants,
-};
-
static void
gen7_upload_urb(struct brw_context *brw)
{