Home
last modified time | relevance | path

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

12345678

/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()
64 pq->index = index; in llvmpipe_create_query()
67 return (struct pipe_query *) pq; in llvmpipe_create_query()
74 struct llvmpipe_query *pq = llvmpipe_query(q); in llvmpipe_destroy_query() local
79 if (pq->fence) { in llvmpipe_destroy_query()
80 if (!lp_fence_issued(pq->fence)) in llvmpipe_destroy_query()
83 if (!lp_fence_signalled(pq->fence)) in llvmpipe_destroy_query()
[all …]
Dlp_setup.c1515 struct llvmpipe_query *pq) in lp_setup_begin_query() argument
1520 if (!(pq->type == PIPE_QUERY_OCCLUSION_COUNTER || in lp_setup_begin_query()
1521 pq->type == PIPE_QUERY_OCCLUSION_PREDICATE || in lp_setup_begin_query()
1522 pq->type == PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE || in lp_setup_begin_query()
1523 pq->type == PIPE_QUERY_PIPELINE_STATISTICS)) in lp_setup_begin_query()
1533 setup->active_queries[setup->active_binned_queries] = pq; in lp_setup_begin_query()
1540 lp_rast_arg_query(pq))) { in lp_setup_begin_query()
1547 lp_rast_arg_query(pq))) { in lp_setup_begin_query()
1560 lp_setup_end_query(struct lp_setup_context *setup, struct llvmpipe_query *pq) in lp_setup_end_query() argument
1569 lp_fence_reference(&pq->fence, setup->scene->fence); in lp_setup_end_query()
[all …]
Dlp_rast.c520 struct llvmpipe_query *pq = arg.query_obj; in lp_rast_begin_query() local
522 switch (pq->type) { in lp_rast_begin_query()
526 pq->start[task->thread_index] = task->thread_data.vis_counter; in lp_rast_begin_query()
529 pq->start[task->thread_index] = task->thread_data.ps_invocations; in lp_rast_begin_query()
547 struct llvmpipe_query *pq = arg.query_obj; in lp_rast_end_query() local
549 switch (pq->type) { in lp_rast_end_query()
553 pq->end[task->thread_index] += in lp_rast_end_query()
554 task->thread_data.vis_counter - pq->start[task->thread_index]; in lp_rast_end_query()
555 pq->start[task->thread_index] = 0; in lp_rast_end_query()
558 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/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()
50 if (pq) { in swr_create_query()
51 memset(pq, 0, sizeof(*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/mesa3d/src/gallium/frontends/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/etnaviv/
Detnaviv_query_acc_perfmon.c51 pm_add_signal(struct etna_pm_query *pq, struct etna_perfmon *perfmon, in pm_add_signal() argument
56 pq->signal = signal; in pm_add_signal()
63 struct etna_pm_query *pq = etna_pm_query(aq); in pm_query() local
75 pq->sequence++; in pm_query()
78 pq->sequence = MAX2(pq->sequence, 1); in pm_query()
82 .sequence = pq->sequence, in pm_query()
84 .signal = pq->signal, in pm_query()
104 struct etna_pm_query *pq; in perfmon_allocate() local
114 pq = CALLOC_STRUCT(etna_pm_query); in perfmon_allocate()
115 if (!pq) in perfmon_allocate()
[all …]
Detnaviv_query.c52 etna_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_destroy_query() argument
54 struct etna_query *q = etna_query(pq); in etna_destroy_query()
60 etna_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_begin_query() argument
62 struct etna_query *q = etna_query(pq); in etna_begin_query()
70 etna_end_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_end_query() argument
72 struct etna_query *q = etna_query(pq); in etna_end_query()
80 etna_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, in etna_get_query_result() argument
83 struct etna_query *q = etna_query(pq); in etna_get_query_result()
/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/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/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/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/mesa/state_tracker/
Dst_cb_queryobj.c58 stq->pq = NULL; in st_NewQueryObject()
69 if (stq->pq) { in free_queries()
70 pipe->destroy_query(pipe, stq->pq); in free_queries()
71 stq->pq = NULL; in free_queries()
207 if (!stq->pq) { in st_BeginQuery()
208 stq->pq = pipe->create_query(pipe, type, target_to_index(st, q)); in st_BeginQuery()
211 if (stq->pq) in st_BeginQuery()
212 ret = pipe->begin_query(pipe, stq->pq); in st_BeginQuery()
242 !stq->pq) { in st_EndQuery()
243 stq->pq = pipe->create_query(pipe, PIPE_QUERY_TIMESTAMP, 0); in st_EndQuery()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_query.c55 fd_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_destroy_query() argument
57 struct fd_query *q = fd_query(pq); in fd_destroy_query()
62 fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_begin_query() argument
64 struct fd_query *q = fd_query(pq); in fd_begin_query()
72 fd_end_query(struct pipe_context *pctx, struct pipe_query *pq) in fd_end_query() argument
74 struct fd_query *q = fd_query(pq); in fd_end_query()
80 fd_begin_query(pctx, pq); in fd_end_query()
88 fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, in fd_get_query_result() argument
91 struct fd_query *q = fd_query(pq); in fd_get_query_result()
99 fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq, in fd_render_condition() argument
[all …]
/external/mesa3d/src/gallium/frontends/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<Mock*, Mock::LessP, Mock::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 Mock* top = pq.peek(); in random_test()
124 Mock* 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/libchrome/base/task_scheduler/
Dpriority_queue_unittest.cc84 PriorityQueue pq; in TEST() local
85 auto transaction(pq.BeginTransaction()); in TEST()
148 PriorityQueue pq; in TEST() local
152 pq.BeginTransaction(); in TEST()
155 ThreadBeginningTransaction thread_beginning_transaction(&pq); in TEST()
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DInterpreterMobileNetTest.java123 PriorityQueue<Map.Entry<Integer, Float>> pq = in getTopKLabels() local
135 pq.add(new AbstractMap.SimpleEntry<>(i, labels[0][i])); in getTopKLabels()
139 int topKLabelsSize = Math.min(pq.size(), k); in getTopKLabels()
141 topKLabels.add(pq.poll().getKey()); in getTopKLabels()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_query.c194 struct pipe_driver_query_info *pq = &screen->perfcntr_queries[idx]; in fd2_create_batch_query() local
196 entry->gid = pq->group_id; in fd2_create_batch_query()
206 while (pq > screen->perfcntr_queries) { in fd2_create_batch_query()
207 pq--; in fd2_create_batch_query()
208 if (pq->group_id == entry->gid) in fd2_create_batch_query()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dexport_unittest.py18 import pyquery as pq namespace
84 document = pq.PyQuery(filename=fn_out)
85 self.assertIsInstance(document, pq.PyQuery)
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/gpu/
DGpuDelegateTest.java125 PriorityQueue<Map.Entry<Integer, Float>> pq = in getTopKLabels() local
137 pq.add(new AbstractMap.SimpleEntry<>(i, labels[0][i])); in getTopKLabels()
141 int topKLabelsSize = Math.min(pq.size(), k); in getTopKLabels()
143 topKLabels.add(pq.poll().getKey()); in getTopKLabels()
/external/tensorflow/tensorflow/tools/android/test/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()
/external/llvm-project/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) {
/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) {

12345678