diff options
author | Boyuan Zhang <[email protected]> | 2016-06-27 14:37:16 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-06-28 08:58:03 -0400 |
commit | 06f0a4d9ed50a5b562f7642cbf16a7c880693e95 (patch) | |
tree | 687356d79142c4fa8908d87cd206e2be2a603b03 /src/gallium/drivers/radeon/radeon_vce.c | |
parent | 533bd6ae177b36229865079b43306c7a9e0b1b64 (diff) |
radeon/vce: use vce structure for vce 52 firmware
Signed-off-by: Boyuan Zhang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index e16e0cf0536..e8aac8ec0e4 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +++ b/src/gallium/drivers/radeon/radeon_vce.c @@ -267,6 +267,7 @@ static void rvce_begin_frame(struct pipe_video_codec *encoder, enc->pic.quant_b_frames != pic->quant_b_frames; enc->pic = *pic; + get_pic_param(enc, pic); enc->get_buffer(vid_buf->resources[0], &enc->handle, &enc->luma); enc->get_buffer(vid_buf->resources[1], NULL, &enc->chroma); @@ -474,6 +475,7 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, switch (rscreen->info.vce_fw_version) { case FW_40_2_2: radeon_vce_40_2_2_init(enc); + get_pic_param = radeon_vce_40_2_2_get_param; break; case FW_50_0_1: @@ -481,11 +483,13 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, case FW_50_10_2: case FW_50_17_3: radeon_vce_50_init(enc); + get_pic_param = radeon_vce_50_get_param; break; case FW_52_0_3: case FW_52_4_3: radeon_vce_52_init(enc); + get_pic_param = radeon_vce_52_get_param; break; default: |