diff options
author | Younes Manton <[email protected]> | 2010-03-12 12:37:19 -0500 |
---|---|---|
committer | Younes Manton <[email protected]> | 2010-03-12 12:38:33 -0500 |
commit | 69c3ad3fc174c4aaa7cb48cf693ebb4a4e130f4f (patch) | |
tree | 12c256732a0eb77f884a514e2e2fd745efeacef5 /src/gallium/drivers | |
parent | 299407aaa3d3a4ab96097e110df1a7db16eaee9c (diff) |
vl: Use pipe_surface instead of pipe_texture in interfaces.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_video_context.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gallium/drivers/softpipe/sp_video_context.c b/src/gallium/drivers/softpipe/sp_video_context.c index 2be093f505d..7850908b134 100644 --- a/src/gallium/drivers/softpipe/sp_video_context.c +++ b/src/gallium/drivers/softpipe/sp_video_context.c @@ -77,10 +77,9 @@ sp_mpeg12_decode_macroblocks(struct pipe_video_context *vpipe, assert(ctx->decode_target); vl_mpeg12_mc_renderer_render_macroblocks(&ctx->mc_renderer, - ctx->decode_target->texture, - past ? past->texture : NULL, - future ? future->texture : NULL, - num_macroblocks, mpeg12_macroblocks, fence); + ctx->decode_target, + past, future, num_macroblocks, + mpeg12_macroblocks, fence); } static void @@ -141,13 +140,13 @@ sp_mpeg12_render_picture(struct pipe_video_context *vpipe, assert(dst_surface); assert(dst_area); - vl_compositor_render(&ctx->compositor, src_surface->texture, - picture_type, src_area, dst_surface->texture, dst_area, fence); + vl_compositor_render(&ctx->compositor, src_surface, + picture_type, src_area, dst_surface, dst_area, fence); } static void sp_mpeg12_set_picture_background(struct pipe_video_context *vpipe, - struct pipe_texture *bg, + struct pipe_surface *bg, struct pipe_video_rect *bg_src_rect) { struct sp_mpeg12_context *ctx = (struct sp_mpeg12_context*)vpipe; @@ -161,7 +160,7 @@ sp_mpeg12_set_picture_background(struct pipe_video_context *vpipe, static void sp_mpeg12_set_picture_layers(struct pipe_video_context *vpipe, - struct pipe_texture *layers[], + struct pipe_surface *layers[], struct pipe_video_rect *src_rects[], struct pipe_video_rect *dst_rects[], unsigned num_layers) |