Lines Matching refs:rquery

301 	struct r600_query *rquery = (struct r600_query*)query;  in r600_destroy_query()  local
302 struct r600_query_buffer *prev = rquery->buffer.previous; in r600_destroy_query()
312 pipe_resource_reference((struct pipe_resource**)&rquery->buffer.buf, NULL); in r600_destroy_query()
338 struct r600_query *rquery = (struct r600_query *)query; in r600_begin_query() local
339 struct r600_query_buffer *prev = rquery->buffer.previous; in r600_begin_query()
341 if (!r600_query_needs_begin(rquery->type)) { in r600_begin_query()
355 …if (rctx->ws->cs_is_buffer_referenced(rctx->cs, rquery->buffer.buf->cs_buf, RADEON_USAGE_READWRITE… in r600_begin_query()
356 rctx->ws->buffer_is_busy(rquery->buffer.buf->buf, RADEON_USAGE_READWRITE)) { in r600_begin_query()
357 pipe_resource_reference((struct pipe_resource**)&rquery->buffer.buf, NULL); in r600_begin_query()
358 rquery->buffer.buf = r600_new_query_buffer(rctx, rquery->type); in r600_begin_query()
361 rquery->buffer.results_end = 0; in r600_begin_query()
362 rquery->buffer.previous = NULL; in r600_begin_query()
364 r600_update_occlusion_query_state(rctx, rquery->type, 1); in r600_begin_query()
366 r600_emit_query_begin(rctx, rquery); in r600_begin_query()
368 if (r600_is_timer_query(rquery->type)) { in r600_begin_query()
369 LIST_ADDTAIL(&rquery->list, &rctx->active_timer_queries); in r600_begin_query()
371 LIST_ADDTAIL(&rquery->list, &rctx->active_nontimer_queries); in r600_begin_query()
378 struct r600_query *rquery = (struct r600_query *)query; in r600_end_query() local
380 r600_emit_query_end(rctx, rquery); in r600_end_query()
382 if (r600_query_needs_begin(rquery->type)) { in r600_end_query()
383 LIST_DELINIT(&rquery->list); in r600_end_query()
386 r600_update_occlusion_query_state(rctx, rquery->type, -1); in r600_end_query()
503 struct r600_query *rquery = (struct r600_query *)query; in r600_get_query_result() local
506 util_query_clear_result(result, rquery->type); in r600_get_query_result()
508 for (qbuf = &rquery->buffer; qbuf; qbuf = qbuf->previous) { in r600_get_query_result()
509 if (!r600_get_query_buffer_result(rctx, rquery, qbuf, wait, result)) { in r600_get_query_result()
515 if (rquery->type == PIPE_QUERY_TIME_ELAPSED || in r600_get_query_result()
516 rquery->type == PIPE_QUERY_TIMESTAMP) { in r600_get_query_result()
527 struct r600_query *rquery = (struct r600_query *)query; in r600_render_condition() local
548 switch (rquery->type) { in r600_render_condition()
551 r600_emit_query_predication(rctx, rquery, PREDICATION_OP_ZPASS, wait_flag); in r600_render_condition()
557 r600_emit_query_predication(rctx, rquery, PREDICATION_OP_PRIMCOUNT, wait_flag); in r600_render_condition()