Home
last modified time | relevance | path

Searched refs:pq (Results 1 – 25 of 257) sorted by relevance

1234567891011

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_query.c56 struct llvmpipe_query *pq; in llvmpipe_create_query() local
60 pq = CALLOC_STRUCT( llvmpipe_query ); in llvmpipe_create_query()
62 if (pq) { in llvmpipe_create_query()
63 pq->type = type; in llvmpipe_create_query()
66 return (struct pipe_query *) pq; in llvmpipe_create_query()
73 struct llvmpipe_query *pq = llvmpipe_query(q); in llvmpipe_destroy_query() local
78 if (pq->fence) { in llvmpipe_destroy_query()
79 if (!lp_fence_issued(pq->fence)) in llvmpipe_destroy_query()
82 if (!lp_fence_signalled(pq->fence)) in llvmpipe_destroy_query()
83 lp_fence_wait(pq->fence); in llvmpipe_destroy_query()
[all …]
Dlp_setup.c1376 struct llvmpipe_query *pq) in lp_setup_begin_query() argument
1381 if (!(pq->type == PIPE_QUERY_OCCLUSION_COUNTER || in lp_setup_begin_query()
1382 pq->type == PIPE_QUERY_OCCLUSION_PREDICATE || in lp_setup_begin_query()
1383 pq->type == PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE || in lp_setup_begin_query()
1384 pq->type == PIPE_QUERY_PIPELINE_STATISTICS)) in lp_setup_begin_query()
1394 setup->active_queries[setup->active_binned_queries] = pq; in lp_setup_begin_query()
1401 lp_rast_arg_query(pq))) { in lp_setup_begin_query()
1408 lp_rast_arg_query(pq))) { in lp_setup_begin_query()
1421 lp_setup_end_query(struct lp_setup_context *setup, struct llvmpipe_query *pq) in lp_setup_end_query() argument
1430 lp_fence_reference(&pq->fence, setup->scene->fence); in lp_setup_end_query()
[all …]
Dlp_rast.c485 struct llvmpipe_query *pq = arg.query_obj; in lp_rast_begin_query() local
487 switch (pq->type) { in lp_rast_begin_query()
491 pq->start[task->thread_index] = task->thread_data.vis_counter; in lp_rast_begin_query()
494 pq->start[task->thread_index] = task->ps_invocations; in lp_rast_begin_query()
512 struct llvmpipe_query *pq = arg.query_obj; in lp_rast_end_query() local
514 switch (pq->type) { in lp_rast_end_query()
518 pq->end[task->thread_index] += in lp_rast_end_query()
519 task->thread_data.vis_counter - pq->start[task->thread_index]; in lp_rast_end_query()
520 pq->start[task->thread_index] = 0; in lp_rast_end_query()
523 pq->end[task->thread_index] = os_time_get_nano(); in lp_rast_end_query()
[all …]
/external/grpc-grpc/test/core/iomgr/
Dtimer_heap_test.cc44 static int contains(grpc_timer_heap* pq, grpc_timer* el) { in contains() argument
46 for (i = 0; i < pq->timer_count; i++) { in contains()
47 if (pq->timers[i] == el) return 1; in contains()
52 static void check_valid(grpc_timer_heap* pq) { in check_valid() argument
54 for (i = 0; i < pq->timer_count; ++i) { in check_valid()
57 if (left_child < pq->timer_count) { in check_valid()
58 GPR_ASSERT(pq->timers[i]->deadline <= pq->timers[left_child]->deadline); in check_valid()
60 if (right_child < pq->timer_count) { in check_valid()
61 GPR_ASSERT(pq->timers[i]->deadline <= pq->timers[right_child]->deadline); in check_valid()
71 grpc_timer_heap pq; in test1() local
[all …]
/external/mesa3d/src/gallium/state_trackers/vdpau/
Dpresentation.c44 vlVdpPresentationQueue *pq = NULL; in vlVdpPresentationQueueCreate() local
61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue)); in vlVdpPresentationQueueCreate()
62 if (!pq) in vlVdpPresentationQueueCreate()
65 DeviceReference(&pq->device, dev); in vlVdpPresentationQueueCreate()
66 pq->drawable = pqt->drawable; in vlVdpPresentationQueueCreate()
69 if (!vl_compositor_init_state(&pq->cstate, dev->context)) { in vlVdpPresentationQueueCreate()
76 *presentation_queue = vlAddDataHTAB(pq); in vlVdpPresentationQueueCreate()
86 DeviceReference(&pq->device, NULL); in vlVdpPresentationQueueCreate()
87 FREE(pq); in vlVdpPresentationQueueCreate()
97 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueDestroy() local
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_query.cpp43 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()
[all …]
/external/libaom/libaom/aom_dsp/x86/
Dhighbd_loopfilter_sse2.c108 static INLINE void highbd_hev_filter_mask_x_sse2(__m128i *pq, int x, in highbd_hev_filter_mask_x_sse2() argument
119 *p1p0 = _mm_unpacklo_epi64(pq[0], pq[1]); in highbd_hev_filter_mask_x_sse2()
120 *q1q0 = _mm_unpackhi_epi64(pq[0], pq[1]); in highbd_hev_filter_mask_x_sse2()
135 *abs_p1p0 = abs_diff16(pq[0], pq[1]); in highbd_hev_filter_mask_x_sse2()
149 max = _mm_max_epi16(max, abs_diff16(pq[i], pq[i - 1])); in highbd_hev_filter_mask_x_sse2()
157 static INLINE void flat_mask_internal(const __m128i *th, const __m128i *pq, in flat_mask_internal() argument
160 __m128i max = _mm_max_epi16(abs_diff16(pq[start], pq[0]), in flat_mask_internal()
161 abs_diff16(pq[start + 1], pq[0])); in flat_mask_internal()
164 max = _mm_max_epi16(max, abs_diff16(pq[i], pq[0])); in flat_mask_internal()
194 static INLINE void highbd_flat_mask4_sse2(__m128i *pq, __m128i *flat, in highbd_flat_mask4_sse2() argument
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_query.c56 fd_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_destroy_query() argument
58 struct fd_query *q = fd_query(pq); in fd_destroy_query()
63 fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_begin_query() argument
65 struct fd_query *q = fd_query(pq); in fd_begin_query()
78 fd_end_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_end_query() argument
80 struct fd_query *q = fd_query(pq); in fd_end_query()
86 fd_begin_query(pctx, pq); in fd_end_query()
98 fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, in fd_get_query_result() argument
101 struct fd_query *q = fd_query(pq); in fd_get_query_result()
112 fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq, in fd_render_condition() argument
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_query.c48 nvc0_destroy_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_destroy_query() argument
50 struct nvc0_query *q = nvc0_query(pq); in nvc0_destroy_query()
55 nvc0_begin_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_begin_query() argument
57 struct nvc0_query *q = nvc0_query(pq); in nvc0_begin_query()
62 nvc0_end_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_end_query() argument
64 struct nvc0_query *q = nvc0_query(pq); in nvc0_end_query()
70 nvc0_get_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nvc0_get_query_result() argument
73 struct nvc0_query *q = nvc0_query(pq); in nvc0_get_query_result()
79 struct pipe_query *pq, in nvc0_get_query_result_resource() argument
86 struct nvc0_query *q = nvc0_query(pq); in nvc0_get_query_result_resource()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_query.c44 nv50_destroy_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_destroy_query() argument
46 struct nv50_query *q = nv50_query(pq); in nv50_destroy_query()
51 nv50_begin_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_begin_query() argument
53 struct nv50_query *q = nv50_query(pq); in nv50_begin_query()
58 nv50_end_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_end_query() argument
60 struct nv50_query *q = nv50_query(pq); in nv50_end_query()
66 nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nv50_get_query_result() argument
69 struct nv50_query *q = nv50_query(pq); in nv50_get_query_result()
75 struct pipe_query *pq, in nv50_render_condition() argument
80 struct nv50_query *q = nv50_query(pq); in nv50_render_condition()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_query.c51 etna_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_destroy_query() argument
53 struct etna_query *q = etna_query(pq); in etna_destroy_query()
59 etna_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_begin_query() argument
61 struct etna_query *q = etna_query(pq); in etna_begin_query()
74 etna_end_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_end_query() argument
76 struct etna_query *q = etna_query(pq); in etna_end_query()
88 etna_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, in etna_get_query_result() argument
91 struct etna_query *q = etna_query(pq); in etna_get_query_result()
Detnaviv_query.h51 etna_query(struct pipe_query *pq) in etna_query() argument
53 return (struct etna_query *)pq; in etna_query()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_queryobj.c57 stq->pq = NULL; in st_NewQueryObject()
68 if (stq->pq) { in free_queries()
69 pipe->destroy_query(pipe, stq->pq); in free_queries()
70 stq->pq = NULL; in free_queries()
166 if (!stq->pq) { in st_BeginQuery()
167 stq->pq = pipe->create_query(pipe, type, q->Stream); in st_BeginQuery()
170 if (stq->pq) in st_BeginQuery()
171 ret = pipe->begin_query(pipe, stq->pq); in st_BeginQuery()
197 !stq->pq) { in st_EndQuery()
198 stq->pq = pipe->create_query(pipe, PIPE_QUERY_TIMESTAMP, 0); in st_EndQuery()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_query.c144 nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_destroy() argument
146 FREE(pq); in nv30_query_destroy()
150 nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_begin() argument
153 struct nv30_query *q = nv30_query(pq); in nv30_query_begin()
180 nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_end() argument
184 struct nv30_query *q = nv30_query(pq); in nv30_query_end()
202 nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nv30_query_result() argument
206 struct nv30_query *q = nv30_query(pq); in nv30_query_result()
242 struct pipe_query *pq, in nv40_query_render_condition() argument
246 struct nv30_query *q = nv30_query(pq); in nv40_query_render_condition()
[all …]
/external/mesa3d/src/gallium/state_trackers/nine/
Dquery9.c113 This->pq = nine_context_create_query(device, ptype); in NineQuery9_ctor()
114 if (!This->pq) in NineQuery9_ctor()
140 if (This->pq) { in NineQuery9_dtor()
142 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_dtor()
143 nine_context_destroy_query(device, This->pq); in NineQuery9_dtor()
180 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_Issue()
181 nine_context_begin_query(device, &This->counter, This->pq); in NineQuery9_Issue()
187 nine_context_begin_query(device, &This->counter, This->pq); in NineQuery9_Issue()
188 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_Issue()
243 ok = nine_context_get_query_result(device, This->pq, &This->counter, in NineQuery9_GetData()
/external/skia/tests/
DTDPQueueTest.cpp102 SkTDPQueue<Dummy*, Dummy::LessP, Dummy::PQIndex> pq; in random_test() local
104 pq.insert(&array[j]); in random_test()
106 REPORTER_ASSERT(reporter, pq.count() == array.count()); in random_test()
113 while (pq.count()) { in random_test()
115 Dummy* top = pq.peek(); in random_test()
124 Dummy* top = pq.peek(); in random_test()
126 pq.pop(); in random_test()
135 pq.remove(&array[item]); in random_test()
145 pq.priorityDidChange(&array[item]); in random_test()
/external/skqp/tests/
DTDPQueueTest.cpp102 SkTDPQueue<Dummy*, Dummy::LessP, Dummy::PQIndex> pq; in random_test() local
104 pq.insert(&array[j]); in random_test()
106 REPORTER_ASSERT(reporter, pq.count() == array.count()); in random_test()
113 while (pq.count()) { in random_test()
115 Dummy* top = pq.peek(); in random_test()
124 Dummy* top = pq.peek(); in random_test()
126 pq.pop(); in random_test()
135 pq.remove(&array[item]); in random_test()
145 pq.priorityDidChange(&array[item]); in random_test()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DTensorFlowImageClassifier.java159 PriorityQueue<Recognition> pq = in recognizeImage() local
171 pq.add( in recognizeImage()
177 int recognitionsSize = Math.min(pq.size(), MAX_RESULTS); in recognizeImage()
179 recognitions.add(pq.poll()); in recognizeImage()
DTensorFlowObjectDetectionAPIModel.java174 final PriorityQueue<Recognition> pq = in recognizeImage() local
193 pq.add( in recognizeImage()
198 for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) { in recognizeImage()
199 recognitions.add(pq.poll()); in recognizeImage()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/ValueTracking/
Dmonotonic-phi.ll4 define i1 @test1(i8 %p, i8* %pq, i8 %n, i8 %r) {
20 define i1 @test2(i8 %p, i8* %pq, i8 %n, i8 %r) {
36 define i1 @test3(i8 %p, i8* %pq, i8 %n, i8 %r) {
Dknownnonzero-shift.ll4 define i1 @test(i8 %p, i8* %pq) {
5 %q = load i8, i8* %pq, !range !0 ; %q is known nonzero; no known bits
/external/llvm/test/Analysis/ValueTracking/
Dmonotonic-phi.ll4 define i1 @test1(i8 %p, i8* %pq, i8 %n, i8 %r) {
20 define i1 @test2(i8 %p, i8* %pq, i8 %n, i8 %r) {
36 define i1 @test3(i8 %p, i8* %pq, i8 %n, i8 %r) {
Dknownnonzero-shift.ll4 define i1 @test(i8 %p, i8* %pq) {
5 %q = load i8, i8* %pq, !range !0 ; %q is known nonzero; no known bits
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteImageClassifier.java170 PriorityQueue<Recognition> pq = in recognizeImage() local
181 pq.add( in recognizeImage()
189 int recognitionsSize = Math.min(pq.size(), MAX_RESULTS); in recognizeImage()
191 recognitions.add(pq.poll()); in recognizeImage()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dwriting.cc47 grpc_chttp2_ping_queue* pq = &t->ping_queue; in maybe_initiate_ping() local
48 if (grpc_closure_list_empty(pq->lists[GRPC_CHTTP2_PCL_NEXT])) { in maybe_initiate_ping()
52 if (!grpc_closure_list_empty(pq->lists[GRPC_CHTTP2_PCL_INFLIGHT])) { in maybe_initiate_ping()
100 pq->inflight_id = t->ping_ctr; in maybe_initiate_ping()
102 GRPC_CLOSURE_LIST_SCHED(&pq->lists[GRPC_CHTTP2_PCL_INITIATE]); in maybe_initiate_ping()
103 grpc_closure_list_move(&pq->lists[GRPC_CHTTP2_PCL_NEXT], in maybe_initiate_ping()
104 &pq->lists[GRPC_CHTTP2_PCL_INFLIGHT]); in maybe_initiate_ping()
106 grpc_chttp2_ping_create(false, pq->inflight_id)); in maybe_initiate_ping()

1234567891011