From 53e20b8b418cc85e13d70f41ce160e17847a5096 Mon Sep 17 00:00:00 2001 From: Christian König Date: Mon, 15 Jul 2013 01:50:24 -0600 Subject: vl: use a template for create_video_decoder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- src/gallium/drivers/r600/r600_pipe.h | 6 +----- src/gallium/drivers/r600/r600_uvd.c | 10 ++-------- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 349a6cb6cfb..eaef920b156 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -891,11 +891,7 @@ bool sampler_state_needs_border_color(const struct pipe_sampler_state *state); /* r600_uvd.c */ struct pipe_video_decoder *r600_uvd_create_decoder(struct pipe_context *context, - enum pipe_video_profile profile, - enum pipe_video_entrypoint entrypoint, - enum pipe_video_chroma_format chroma_format, - unsigned width, unsigned height, - unsigned max_references, bool expect_chunked_decode); + const struct pipe_video_decoder *decoder); struct pipe_video_buffer *r600_video_buffer_create(struct pipe_context *pipe, const struct pipe_video_buffer *tmpl); diff --git a/src/gallium/drivers/r600/r600_uvd.c b/src/gallium/drivers/r600/r600_uvd.c index 3b4aa843808..62c8e525e12 100644 --- a/src/gallium/drivers/r600/r600_uvd.c +++ b/src/gallium/drivers/r600/r600_uvd.c @@ -165,17 +165,11 @@ static struct radeon_winsys_cs_handle* r600_uvd_set_dtb(struct ruvd_msg *msg, st /* create decoder */ struct pipe_video_decoder *r600_uvd_create_decoder(struct pipe_context *context, - enum pipe_video_profile profile, - enum pipe_video_entrypoint entrypoint, - enum pipe_video_chroma_format chroma_format, - unsigned width, unsigned height, - unsigned max_references, bool expect_chunked_decode) + const struct pipe_video_decoder *templat) { struct r600_context *ctx = (struct r600_context *)context; - return ruvd_create_decoder(context, profile, entrypoint, chroma_format, - width, height, max_references, expect_chunked_decode, - ctx->ws, r600_uvd_set_dtb); + return ruvd_create_decoder(context, templat, ctx->ws, r600_uvd_set_dtb); } int r600_uvd_get_video_param(struct pipe_screen *screen, -- cgit v1.2.3