• Home
  • Raw
  • Download

Lines Matching refs:pq

43    struct swr_query *pq;  in swr_create_query()  local
48 pq = (struct swr_query *) AlignedMalloc(sizeof(struct swr_query), 64); in swr_create_query()
49 memset(pq, 0, sizeof(*pq)); in swr_create_query()
51 if (pq) { in swr_create_query()
52 pq->type = type; in swr_create_query()
53 pq->index = index; in swr_create_query()
56 return (struct pipe_query *)pq; in swr_create_query()
63 struct swr_query *pq = swr_query(q); in swr_destroy_query() local
65 if (pq->fence) { in swr_destroy_query()
66 if (swr_is_fence_pending(pq->fence)) in swr_destroy_query()
67 swr_fence_finish(pipe->screen, NULL, pq->fence, 0); in swr_destroy_query()
68 swr_fence_reference(pipe->screen, &pq->fence, NULL); in swr_destroy_query()
71 AlignedFree(pq); in swr_destroy_query()
81 struct swr_query *pq = swr_query(q); in swr_get_query_result() local
82 unsigned index = pq->index; in swr_get_query_result()
84 if (pq->fence) { in swr_get_query_result()
85 if (!wait && !swr_is_fence_done(pq->fence)) in swr_get_query_result()
88 swr_fence_finish(pipe->screen, NULL, pq->fence, 0); in swr_get_query_result()
89 swr_fence_reference(pipe->screen, &pq->fence, NULL); in swr_get_query_result()
94 switch (pq->type) { in swr_get_query_result()
98 result->b = pq->result.core.DepthPassCount != 0; in swr_get_query_result()
105 result->u64 = pq->result.core.DepthPassCount; in swr_get_query_result()
109 result->u64 = pq->result.timestamp_end - pq->result.timestamp_start; in swr_get_query_result()
112 result->u64 = pq->result.coreFE.IaPrimitives; in swr_get_query_result()
115 result->u64 = pq->result.coreFE.SoNumPrimsWritten[index]; in swr_get_query_result()
121 pq->result.coreFE.SoNumPrimsWritten[index]; in swr_get_query_result()
123 pq->result.coreFE.SoPrimStorageNeeded[index]; in swr_get_query_result()
133 p_stats->ia_vertices = pq->result.coreFE.IaVertices; in swr_get_query_result()
134 p_stats->ia_primitives = pq->result.coreFE.IaPrimitives; in swr_get_query_result()
135 p_stats->vs_invocations = pq->result.coreFE.VsInvocations; in swr_get_query_result()
136 p_stats->gs_invocations = pq->result.coreFE.GsInvocations; in swr_get_query_result()
137 p_stats->gs_primitives = pq->result.coreFE.GsPrimitives; in swr_get_query_result()
138 p_stats->c_invocations = pq->result.coreFE.CPrimitives; in swr_get_query_result()
139 p_stats->c_primitives = pq->result.coreFE.CPrimitives; in swr_get_query_result()
140 p_stats->ps_invocations = pq->result.core.PsInvocations; in swr_get_query_result()
141 p_stats->hs_invocations = pq->result.coreFE.HsInvocations; in swr_get_query_result()
142 p_stats->ds_invocations = pq->result.coreFE.DsInvocations; in swr_get_query_result()
143 p_stats->cs_invocations = pq->result.core.CsInvocations; in swr_get_query_result()
147 pq->result.coreFE.SoNumPrimsWritten[index]; in swr_get_query_result()
149 pq->result.coreFE.SoPrimStorageNeeded[index]; in swr_get_query_result()
165 struct swr_query *pq = swr_query(q); in swr_begin_query() local
168 memset(&pq->result, 0, sizeof(pq->result)); in swr_begin_query()
169 switch (pq->type) { in swr_begin_query()
175 pq->result.timestamp_start = swr_get_timestamp(pipe->screen); in swr_begin_query()
180 swr_update_draw_context(ctx, &pq->result); in swr_begin_query()
199 struct swr_query *pq = swr_query(q); in swr_end_query() local
201 switch (pq->type) { in swr_end_query()
207 pq->result.timestamp_end = swr_get_timestamp(pipe->screen); in swr_end_query()
212 if (!pq->fence) { in swr_end_query()
214 swr_fence_reference(pipe->screen, &pq->fence, screen->flush_fence); in swr_end_query()
216 swr_fence_submit(ctx, pq->fence); in swr_end_query()