diff options
author | Christian König <[email protected]> | 2012-02-25 13:53:29 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-03-02 13:14:21 +0100 |
commit | d645dc65b6c5e7d46538e98208a703f0f7a5d20b (patch) | |
tree | e6c1c8ebf578775dd2c8524a6394602235fd674c /src/gallium/state_trackers/vdpau/presentation.c | |
parent | 32c4381d4a0479b3d9bfe305ce701be6b5ac8e18 (diff) |
vl/compositor: replace pipe_video_rect with u_rect
So we support things like flipping also.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/presentation.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/presentation.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index 71447793f58..4d12bb3e700 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -202,8 +202,7 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue, struct pipe_context *pipe; struct pipe_resource *tex; struct pipe_surface surf_templ, *surf_draw; - struct pipe_video_rect src_rect, dst_clip; - struct u_rect *dirty_area; + struct u_rect src_rect, dst_clip, *dirty_area; struct vl_compositor *compositor; @@ -231,15 +230,15 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue, surf->timestamp = (vlVdpTime)earliest_presentation_time; - src_rect.x = 0; - src_rect.y = 0; - src_rect.w = surf_draw->width; - src_rect.h = surf_draw->height; + src_rect.x0 = 0; + src_rect.y0 = 0; + src_rect.x1 = surf_draw->width; + src_rect.y1 = surf_draw->height; - dst_clip.x = 0; - dst_clip.y = 0; - dst_clip.w = clip_width ? clip_width : surf_draw->width; - dst_clip.h = clip_height ? clip_height : surf_draw->height; + dst_clip.x0 = 0; + dst_clip.y0 = 0; + dst_clip.x1 = clip_width ? clip_width : surf_draw->width; + dst_clip.y1 = clip_height ? clip_height : surf_draw->height; vl_compositor_clear_layers(&pq->cstate); vl_compositor_set_rgba_layer(&pq->cstate, compositor, 0, surf->sampler_view, &src_rect, NULL); |