u_upload_destroy(r300->upload_vb);
u_upload_destroy(r300->upload_ib);
+ translate_cache_destroy(r300->tran.translate_cache);
+
FREE(r300->blend_color_state.state);
FREE(r300->clip_state.state);
FREE(r300->fb_state.state);
if (r300->upload_vb == NULL)
goto no_upload_vb;
+ r300->tran.translate_cache = translate_cache_create();
+
return &r300->context;
no_upload_ib:
return NULL;
}
+boolean r300_check_cs(struct r300_context *r300, unsigned size)
+{
+ return size <= r300->rws->get_cs_free_dwords(r300->rws);
+}
+
void r300_finish(struct r300_context *r300)
{
struct pipe_framebuffer_state *fb;