Lines Matching refs:qbuf

510 		struct r600_query_buffer *qbuf = prev;  in si_query_hw_destroy()  local
512 r600_resource_reference(&qbuf->buf, NULL); in si_query_hw_destroy()
513 FREE(qbuf); in si_query_hw_destroy()
815 struct r600_query_buffer *qbuf = MALLOC_STRUCT(r600_query_buffer); in r600_query_hw_emit_start() local
816 *qbuf = query->buffer; in r600_query_hw_emit_start()
818 query->buffer.previous = qbuf; in r600_query_hw_emit_start()
949 struct r600_query_buffer *qbuf; in r600_emit_query_predication() local
1002 for (qbuf = &query->buffer; qbuf; qbuf = qbuf->previous) { in r600_emit_query_predication()
1004 uint64_t va_base = qbuf->buf->gpu_address; in r600_emit_query_predication()
1006 while (results_base < qbuf->results_end) { in r600_emit_query_predication()
1011 emit_set_predicate(ctx, qbuf->buf, va + 32 * stream, op); in r600_emit_query_predication()
1017 emit_set_predicate(ctx, qbuf->buf, va, op); in r600_emit_query_predication()
1063 struct r600_query_buffer *qbuf = prev; in si_query_hw_reset_buffers() local
1065 r600_resource_reference(&qbuf->buf, NULL); in si_query_hw_reset_buffers()
1066 FREE(qbuf); in si_query_hw_reset_buffers()
1367 struct r600_query_buffer *qbuf; in si_query_hw_get_result() local
1371 for (qbuf = &query->buffer; qbuf; qbuf = qbuf->previous) { in si_query_hw_get_result()
1378 map = rctx->ws->buffer_map(qbuf->buf->buf, NULL, usage); in si_query_hw_get_result()
1380 map = si_buffer_map_sync_with_rings(rctx, qbuf->buf, usage); in si_query_hw_get_result()
1385 while (results_base != qbuf->results_end) { in si_query_hw_get_result()
1638 struct r600_query_buffer *qbuf; in r600_query_hw_get_result_resource() local
1724 for (qbuf = &query->buffer; qbuf; qbuf = qbuf_prev) { in r600_query_hw_get_result_resource()
1726 qbuf_prev = qbuf->previous; in r600_query_hw_get_result_resource()
1727 consts.result_count = qbuf->results_end / query->result_size; in r600_query_hw_get_result_resource()
1729 if (qbuf != &query->buffer) in r600_query_hw_get_result_resource()
1731 if (qbuf->previous) in r600_query_hw_get_result_resource()
1738 params.start_offset += qbuf->results_end - query->result_size; in r600_query_hw_get_result_resource()
1743 ssbo[0].buffer = &qbuf->buf->b.b; in r600_query_hw_get_result_resource()
1745 ssbo[0].buffer_size = qbuf->results_end - params.start_offset; in r600_query_hw_get_result_resource()
1747 if (!qbuf->previous) { in r600_query_hw_get_result_resource()
1757 if (wait && qbuf == &query->buffer) { in r600_query_hw_get_result_resource()
1764 va = qbuf->buf->gpu_address + qbuf->results_end - query->result_size; in r600_query_hw_get_result_resource()