Lines Matching defs:r300
36 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);
48 CS_LOCALS(r300);
54 r300->flush_counter++;
55 r300->rws->cs_flush(&r300->cs, flags, fence);
56 r300->dirty_hw = 0;
59 foreach_atom(r300, atom) {
61 r300_mark_atom_dirty(r300, atom);
64 r300->vertex_arrays_dirty = TRUE;
67 if (!r300->screen->caps.has_tcl) {
68 r300->vs_state.dirty = FALSE;
69 r300->vs_constants.dirty = FALSE;
70 r300->clip_state.dirty = FALSE;
78 struct r300_context *r300 = r300_context(pipe);
80 if (r300->dirty_hw) {
81 r300_flush_and_cleanup(r300, flags, fence);
86 CS_LOCALS(r300);
88 r300->rws->cs_flush(&r300->cs, flags, fence);
92 r300->rws->cs_flush(&r300->cs, flags, NULL);
97 if (r300->hyperz_enabled) {
99 if (r300->num_z_clears) {
100 r300->hyperz_time_of_last_flush = os_time_get();
101 r300->num_z_clears = 0;
102 } else if (r300->hyperz_time_of_last_flush - os_time_get() > 2000000) {
104 r300->hiz_in_use = FALSE;
107 if (r300->zmask_in_use) {
108 if (r300->locked_zbuffer) {
109 r300_decompress_zmask_locked(r300);
111 r300_decompress_zmask(r300);
115 r300->rws->fence_reference(fence, NULL);
116 r300_flush_and_cleanup(r300, flags, fence);
120 r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_HYPERZ_ACCESS,
122 r300->hyperz_enabled = FALSE;
137 void r300_init_flush_functions(struct r300_context* r300)
139 r300->context.flush = r300_flush_wrapped;