intel_prepare_render(intel);
+ /* This workaround has to happen outside of brw_state_upload() because it
+ * may flush the batchbuffer for a blit, affecting the state flags.
+ */
+ brw_workaround_depthstencil_alignment(brw);
+
/* Resolves must occur after updating renderbuffers, updating context state,
* and finalizing textures but before setting up any hardware state for
* this draw call.
*/
brw_predraw_resolve_buffers(brw);
- /* This workaround has to happen outside of brw_state_upload() because it
- * may flush the batchbuffer for a blit, affecting the state flags.
- */
- brw_workaround_depthstencil_alignment(brw);
-
/* Bind all inputs, derive varying and size information:
*/
brw_merge_inputs( brw, arrays );