Lines Matching refs:r300
36 struct r300_context *r300 = r300_context(pipe); in r300_create_query() local
37 struct r300_screen *r300screen = r300->screen; in r300_create_query()
62 q->buf = r300->rws->buffer_create(r300->rws, in r300_create_query()
83 void r300_resume_query(struct r300_context *r300, in r300_resume_query() argument
86 r300->query_current = query; in r300_resume_query()
87 r300_mark_atom_dirty(r300, &r300->query_start); in r300_resume_query()
93 struct r300_context* r300 = r300_context(pipe); in r300_begin_query() local
99 if (r300->query_current != NULL) { in r300_begin_query()
107 r300_resume_query(r300, q); in r300_begin_query()
111 void r300_stop_query(struct r300_context *r300) in r300_stop_query() argument
113 r300_emit_query_end(r300); in r300_stop_query()
114 r300->query_current = NULL; in r300_stop_query()
120 struct r300_context* r300 = r300_context(pipe); in r300_end_query() local
130 if (q != r300->query_current) { in r300_end_query()
136 r300_stop_query(r300); in r300_end_query()
146 struct r300_context* r300 = r300_context(pipe); in r300_get_query_result() local
153 r300->rws->buffer_wait(q->buf, PIPE_TIMEOUT_INFINITE, in r300_get_query_result()
157 vresult->b = r300->rws->buffer_wait(q->buf, 0, RADEON_USAGE_READWRITE); in r300_get_query_result()
162 map = r300->rws->buffer_map(q->buf, r300->cs, in r300_get_query_result()
190 struct r300_context *r300 = r300_context(pipe); in r300_render_condition() local
194 r300->skip_rendering = FALSE; in r300_render_condition()
203 r300->skip_rendering = condition == result.b; in r300_render_condition()
205 r300->skip_rendering = condition == !!result.u64; in r300_render_condition()
216 void r300_init_query_functions(struct r300_context* r300) in r300_init_query_functions() argument
218 r300->context.create_query = r300_create_query; in r300_init_query_functions()
219 r300->context.destroy_query = r300_destroy_query; in r300_init_query_functions()
220 r300->context.begin_query = r300_begin_query; in r300_init_query_functions()
221 r300->context.end_query = r300_end_query; in r300_init_query_functions()
222 r300->context.get_query_result = r300_get_query_result; in r300_init_query_functions()
223 r300->context.set_active_query_state = r300_set_active_query_state; in r300_init_query_functions()
224 r300->context.render_condition = r300_render_condition; in r300_init_query_functions()