Home | History | Annotate | Download | only in r600

Lines Matching full:rquery

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