diff options
author | Leo Liu <leo.liu@amd.com> | 2015-07-13 13:36:27 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-08-14 15:02:31 +0200 |
commit | 0654a9ca17c17fe140f70d126c878a0ce4736b76 (patch) | |
tree | a7149103b24158da02f6d67fdef4d8b9a6bb667b /src/gallium/drivers/radeon/radeon_vce.c | |
parent | 09def7e1e06827ab1eae091f0e765d91c6715cf9 (diff) |
radeon/vce: disable VCE dual instance for harvest part
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index bc8f36db35..7eab974a3d 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +++ b/src/gallium/drivers/radeon/radeon_vce.c @@ -408,7 +408,9 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, if (rscreen->info.family >= CHIP_TONGA) enc->dual_pipe = true; /* TODO enable B frame with dual instance */ - if ((rscreen->info.family >= CHIP_TONGA) && (templ->max_references == 1)) + if ((rscreen->info.family >= CHIP_TONGA) && + (templ->max_references == 1) && + (rscreen->info.vce_harvest_config == 0)) enc->dual_inst = true; enc->base = *templ; |