boolean r300_check_cs(struct r300_context *r300, unsigned size);
void r300_finish(struct r300_context *r300);
+void r300_flush_cb(void *data);
/* Context initialization. */
struct draw_stage* r300_draw_stage(struct r300_context* r300);
}
}
}
+
just_map:
+ /* XXX buffer_map might flush.
+ * We cannot flush here because there is a buffer manager between
+ * the context and winsys, and it does some magic to make the driver
+ * fast. This is a workaround for the case of multiple contexts. */
+ rws->set_flush_cb(rws, r300_flush_cb, pipe);
+
map = rws->buffer_map(rws, rbuf->buf, transfer->usage);
if (map == NULL)