diff options
author | Leo Liu <[email protected]> | 2015-06-15 14:11:57 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-14 15:02:30 +0200 |
commit | fa80c1fe20f1fc33864f04fd9cf49f8bddfa4448 (patch) | |
tree | 7e76ada53c684f1708593e450e8755782ec1b8c6 /src/gallium/drivers/radeon/radeon_vce.c | |
parent | 468fcdcb4fafeba466bb1006ece1f16cc38805c7 (diff) |
radeon/vce: add dual pipe support for VI
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 4af044303d2..644958a05e8 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +++ b/src/gallium/drivers/radeon/radeon_vce.c @@ -403,7 +403,7 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, if ((rscreen->info.drm_major > 2) || (rscreen->info.drm_minor >= 42)) enc->use_vui = true; if (rscreen->info.family >= CHIP_TONGA) - enc->use_2p = true; + enc->dual_pipe = true; enc->base = *templ; enc->base.context = context; @@ -443,9 +443,9 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, cpb_size = cpb_size * align(tmp_surf->npix_y, 16); cpb_size = cpb_size * 3 / 2; cpb_size = cpb_size * enc->cpb_num; - if (enc->use_2p) + if (enc->dual_pipe) cpb_size += RVCE_MAX_AUX_BUFFER_NUM * - RVCE_MAX_BITSTREAM_OUTPUT_ROW_SIZE; + RVCE_MAX_BITSTREAM_OUTPUT_ROW_SIZE * 2; tmp_buf->destroy(tmp_buf); if (!rvid_create_buffer(enc->screen, &enc->cpb, cpb_size, PIPE_USAGE_DEFAULT)) { RVID_ERR("Can't create CPB buffer.\n"); |