{
struct iris_context *ice = (struct iris_context *) ctx;
+ // XXX: actually do brw_cache_flush_for_*
+ iris_emit_pipe_control_flush(&ice->render_batch,
+ PIPE_CONTROL_DEPTH_CACHE_FLUSH |
+ PIPE_CONTROL_RENDER_TARGET_FLUSH |
+ PIPE_CONTROL_CS_STALL);
+
+ iris_emit_pipe_control_flush(&ice->render_batch,
+ PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE |
+ PIPE_CONTROL_CONST_CACHE_INVALIDATE);
+
+ iris_cache_sets_clear(&ice->render_batch);
+ // XXX: ^^^
+
+
iris_update_compiled_shaders(ice);
ice->vtbl.upload_render_state(ice, &ice->render_batch, info);
}