diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2017-07-12 14:04:17 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-10-17 00:43:43 +0800 |
commit | c2cb106e3085cd8d62549eda78bad59708e2acc9 (patch) | |
tree | 4854a578ae4b1a8bb64ae2db5fee07977cf42d02 | |
parent | d55e69f840b87d0efcf2a8fa7725f237e94f149d (diff) | |
download | libva-intel-driver-c2cb106e3085cd8d62549eda78bad59708e2acc9.tar.gz |
Fix VDENC_PIPE_BUF_ADDR_STATE for AVC VDEnc encoding
DW22-DW27 are the first 2 reference surfaces in list0, not the down
scaling referece surfaces.
This fixes https://github.com/01org/intel-vaapi-driver/issues/224
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit f9caf025cfc2dac1b85adbd90c5f533d44052079)
-rw-r--r-- | src/gen9_vdenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen9_vdenc.c b/src/gen9_vdenc.c index 8efd10e3..68d0a316 100644 --- a/src/gen9_vdenc.c +++ b/src/gen9_vdenc.c @@ -2688,12 +2688,12 @@ gen9_vdenc_vdenc_pipe_buf_addr_state(VADriverContextP ctx, /* DW22-DW27 for FWD REF0/REF1 */ if (vdenc_context->list_ref_idx[0][0] != 0xFF) - OUT_BUFFER_3DW(batch, vdenc_context->list_scaled_4x_reference_res[vdenc_context->list_ref_idx[0][0]].bo, 0, 0, 0); + OUT_BUFFER_3DW(batch, vdenc_context->list_reference_res[vdenc_context->list_ref_idx[0][0]].bo, 0, 0, 0); else OUT_BUFFER_3DW(batch, NULL, 0, 0, 0); if (vdenc_context->list_ref_idx[0][1] != 0xFF) - OUT_BUFFER_3DW(batch, vdenc_context->list_scaled_4x_reference_res[vdenc_context->list_ref_idx[0][1]].bo, 0, 0, 0); + OUT_BUFFER_3DW(batch, vdenc_context->list_reference_res[vdenc_context->list_ref_idx[0][1]].bo, 0, 0, 0); else OUT_BUFFER_3DW(batch, NULL, 0, 0, 0); |