GLenum filter =
info->filter == PIPE_TEX_FILTER_LINEAR ? GL_LINEAR : GL_NEAREST;
+ struct iris_batch *batch = &ice->render_batch;
+
+ iris_batch_maybe_flush(batch, 1500);
+
struct blorp_batch blorp_batch;
- blorp_batch_init(&ice->blorp, &blorp_batch, &ice->render_batch, 0);
+ blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
blorp_blit(&blorp_batch, &src_surf, info->src.level, src_layer,
src_isl_format, src_isl_swizzle,
&dst_surf, info->dst.level, dst_layer,
unsigned dst_layer = dstz;
unsigned src_layer = src_box->z;
+ struct iris_batch *batch = &ice->render_batch;
+
+ iris_batch_maybe_flush(batch, 1500);
+
struct blorp_batch blorp_batch;
- blorp_batch_init(&ice->blorp, &blorp_batch, &ice->render_batch, 0);
+ blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
blorp_copy(&blorp_batch, &src_surf, src_level, src_layer,
&dst_surf, dst_level, dst_layer,
src_box->x, src_box->y, dstx, dsty,
struct iris_context *ice = (void *) ctx;
assert(buffers != 0);
+ struct iris_batch *batch = &ice->render_batch;
+
+ iris_batch_maybe_flush(batch, 1500);
+
struct blorp_batch blorp_batch;
- blorp_batch_init(&ice->blorp, &blorp_batch, &ice->render_batch, 0);
+ blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
if (buffers & PIPE_CLEAR_DEPTHSTENCIL) {
fprintf(stderr, "XXX: depth/stencil clears not implemented\n");