Lines Matching refs:pq
44 vlVdpPresentationQueue *pq = NULL; in vlVdpPresentationQueueCreate() local
61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue)); in vlVdpPresentationQueueCreate()
62 if (!pq) in vlVdpPresentationQueueCreate()
65 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 FREE(pq); in vlVdpPresentationQueueCreate()
96 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueDestroy() local
98 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueDestroy()
99 if (!pq) in vlVdpPresentationQueueDestroy()
102 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueDestroy()
103 vl_compositor_cleanup_state(&pq->cstate); in vlVdpPresentationQueueDestroy()
104 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueDestroy()
107 FREE(pq); in vlVdpPresentationQueueDestroy()
119 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueSetBackgroundColor() local
125 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueSetBackgroundColor()
126 if (!pq) in vlVdpPresentationQueueSetBackgroundColor()
134 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueSetBackgroundColor()
135 vl_compositor_set_clear_color(&pq->cstate, &color); in vlVdpPresentationQueueSetBackgroundColor()
136 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueSetBackgroundColor()
148 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueGetBackgroundColor() local
154 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueGetBackgroundColor()
155 if (!pq) in vlVdpPresentationQueueGetBackgroundColor()
158 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueGetBackgroundColor()
159 vl_compositor_get_clear_color(&pq->cstate, &color); in vlVdpPresentationQueueGetBackgroundColor()
160 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueGetBackgroundColor()
177 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueGetTime() local
182 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueGetTime()
183 if (!pq) in vlVdpPresentationQueueGetTime()
186 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueGetTime()
187 *current_time = vl_screen_get_timestamp(pq->device->vscreen, pq->drawable); in vlVdpPresentationQueueGetTime()
188 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueGetTime()
205 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueDisplay() local
216 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueDisplay()
217 if (!pq) in vlVdpPresentationQueueDisplay()
224 pipe = pq->device->context; in vlVdpPresentationQueueDisplay()
225 compositor = &pq->device->compositor; in vlVdpPresentationQueueDisplay()
226 cstate = &pq->cstate; in vlVdpPresentationQueueDisplay()
228 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueDisplay()
229 tex = vl_screen_texture_from_drawable(pq->device->vscreen, pq->drawable); in vlVdpPresentationQueueDisplay()
231 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueDisplay()
235 dirty_area = vl_screen_get_dirty_area(pq->device->vscreen); in vlVdpPresentationQueueDisplay()
249 if (pq->device->delayed_rendering.surface == surface && in vlVdpPresentationQueueDisplay()
253 cstate = pq->device->delayed_rendering.cstate; in vlVdpPresentationQueueDisplay()
255 vlVdpResolveDelayedRendering(pq->device, surf_draw, dirty_area); in vlVdpPresentationQueueDisplay()
258 vlVdpResolveDelayedRendering(pq->device, NULL, NULL); in vlVdpPresentationQueueDisplay()
271 vl_screen_set_next_timestamp(pq->device->vscreen, earliest_presentation_time); in vlVdpPresentationQueueDisplay()
275 vl_screen_get_private(pq->device->vscreen) in vlVdpPresentationQueueDisplay()
290 sprintf(cmd, "xwd -id %d -silent -out vdpau_frame_%08d.xwd", (int)pq->drawable, framenum); in vlVdpPresentationQueueDisplay()
299 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueDisplay()
312 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueBlockUntilSurfaceIdle() local
319 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueBlockUntilSurfaceIdle()
320 if (!pq) in vlVdpPresentationQueueBlockUntilSurfaceIdle()
327 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueBlockUntilSurfaceIdle()
329 screen = pq->device->vscreen->pscreen; in vlVdpPresentationQueueBlockUntilSurfaceIdle()
332 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueBlockUntilSurfaceIdle()
346 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueQuerySurfaceStatus() local
353 pq = vlGetDataHTAB(presentation_queue); in vlVdpPresentationQueueQuerySurfaceStatus()
354 if (!pq) in vlVdpPresentationQueueQuerySurfaceStatus()
366 pipe_mutex_lock(pq->device->mutex); in vlVdpPresentationQueueQuerySurfaceStatus()
367 screen = pq->device->vscreen->pscreen; in vlVdpPresentationQueueQuerySurfaceStatus()
371 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueQuerySurfaceStatus()
378 pipe_mutex_unlock(pq->device->mutex); in vlVdpPresentationQueueQuerySurfaceStatus()