Lines Matching refs:r300

35     struct r300_context *r300 = r300_context(pipe);  in r300_create_query()  local
36 struct r300_screen *r300screen = r300->screen; in r300_create_query()
60 q->buf = r300->rws->buffer_create(r300->rws, 4096, 4096, in r300_create_query()
66 q->cs_buf = r300->rws->buffer_get_cs_handle(q->buf); in r300_create_query()
80 void r300_resume_query(struct r300_context *r300, in r300_resume_query() argument
83 r300->query_current = query; in r300_resume_query()
84 r300_mark_atom_dirty(r300, &r300->query_start); in r300_resume_query()
90 struct r300_context* r300 = r300_context(pipe); in r300_begin_query() local
96 if (r300->query_current != NULL) { in r300_begin_query()
104 r300_resume_query(r300, q); in r300_begin_query()
107 void r300_stop_query(struct r300_context *r300) in r300_stop_query() argument
109 r300_emit_query_end(r300); in r300_stop_query()
110 r300->query_current = NULL; in r300_stop_query()
116 struct r300_context* r300 = r300_context(pipe); in r300_end_query() local
126 if (q != r300->query_current) { in r300_end_query()
132 r300_stop_query(r300); in r300_end_query()
140 struct r300_context* r300 = r300_context(pipe); in r300_get_query_result() local
147 r300->rws->buffer_wait(q->buf, RADEON_USAGE_READWRITE); in r300_get_query_result()
150 vresult->b = !r300->rws->buffer_is_busy(q->buf, RADEON_USAGE_READWRITE); in r300_get_query_result()
155 map = r300->rws->buffer_map(q->cs_buf, r300->cs, in r300_get_query_result()
169 r300->rws->buffer_unmap(q->cs_buf); in r300_get_query_result()
183 struct r300_context *r300 = r300_context(pipe); in r300_render_condition() local
187 r300->skip_rendering = FALSE; in r300_render_condition()
195 r300->skip_rendering = !result.b; in r300_render_condition()
197 r300->skip_rendering = !result.u64; in r300_render_condition()
203 void r300_init_query_functions(struct r300_context* r300) in r300_init_query_functions() argument
205 r300->context.create_query = r300_create_query; in r300_init_query_functions()
206 r300->context.destroy_query = r300_destroy_query; in r300_init_query_functions()
207 r300->context.begin_query = r300_begin_query; in r300_init_query_functions()
208 r300->context.end_query = r300_end_query; in r300_init_query_functions()
209 r300->context.get_query_result = r300_get_query_result; in r300_init_query_functions()
210 r300->context.render_condition = r300_render_condition; in r300_init_query_functions()