Lines Matching refs:r300
37 static void r300_flush_and_cleanup(struct r300_context *r300, unsigned flags)
41 r300_emit_hyperz_end(r300);
42 r300_emit_query_end(r300);
43 if (r300->screen->caps.is_r500)
44 r500_emit_index_bias(r300, 0);
46 r300->flush_counter++;
47 r300->rws->cs_flush(r300->cs, flags);
48 r300->dirty_hw = 0;
51 foreach_atom(r300, atom) {
53 r300_mark_atom_dirty(r300, atom);
56 r300->vertex_arrays_dirty = TRUE;
59 if (!r300->screen->caps.has_tcl) {
60 r300->vs_state.dirty = FALSE;
61 r300->vs_constants.dirty = FALSE;
62 r300->clip_state.dirty = FALSE;
70 struct r300_context *r300 = r300_context(pipe);
73 if (r300->draw && !r300->draw_vbo_locked)
74 r300_draw_flush_vbuf(r300);
76 if (r300->screen->info.drm_minor >= 12) {
82 *rfence = r300->rws->buffer_create(r300->rws, 1, 1,
86 r300->rws->cs_add_reloc(r300->cs,
87 r300->rws->buffer_get_cs_handle(*rfence),
91 if (r300->dirty_hw) {
92 r300_flush_and_cleanup(r300, flags);
97 CS_LOCALS(r300);
99 r300->rws->cs_flush(r300->cs, flags);
103 r300->rws->cs_flush(r300->cs, flags);
108 if (r300->num_z_clears) {
109 r300->hyperz_time_of_last_flush = os_time_get();
110 } else if (!r300->hyperz_time_of_last_flush > 2000000) {
114 r300->hiz_in_use = FALSE;
117 if (r300->zmask_in_use) {
118 if (r300->locked_zbuffer) {
119 r300_decompress_zmask_locked(r300);
121 r300_decompress_zmask(r300);
124 r300_flush_and_cleanup(r300, flags);
128 r300->rws->cs_request_feature(r300->cs, RADEON_FID_R300_HYPERZ_ACCESS,
131 r300->num_z_clears = 0;
140 void r300_init_flush_functions(struct r300_context* r300)
142 r300->context.flush = r300_flush_wrapped;