else
surface_format = I965_SURFACEFORMAT_R8_UNORM;
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
surface_param->input_surface,
0, 1, surface_format,
GEN9_AVC_SCALING_FRAME_SRC_Y_INDEX);
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
surface_param->output_surface,
0, 1, surface_format,
GEN9_AVC_SCALING_FRAME_DST_Y_INDEX);
if (surface_param->mbv_proc_stat_enabled) {
res_size = 16 * (surface_param->input_frame_width / 16) * (surface_param->input_frame_height / 16) * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
surface_param->pres_mbv_proc_stat_buffer,
0,
0,
GEN9_AVC_SCALING_FRAME_MBVPROCSTATS_DST_INDEX);
} else if (surface_param->enable_mb_flatness_check) {
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
surface_param->pres_flatness_check_surface,
1,
I965_SURFACEFORMAT_R8_UNORM,
struct encoder_vme_mfc_context * vme_context = (struct encoder_vme_mfc_context *)encoder_context->vme_context;
struct i965_avc_encoder_context * avc_ctx = (struct i965_avc_encoder_context *)vme_context->private_enc_ctx;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_history_buffer,
0,
0,
GEN9_AVC_BRC_INIT_RESET_HISTORY_INDEX);
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_dist_data_surface,
1,
is_g95 = 1;
/* brc history buffer*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_history_buffer,
0,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_HISTORY_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_HISTORY_INDEX));
/* previous pak buffer*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_pre_pak_statistics_output_buffer,
0,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_PAK_STATISTICS_OUTPUT_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_PAK_STATISTICS_OUTPUT_INDEX));
/* image state command buffer read only*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_image_state_read_buffer,
0,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_IMAGE_STATE_READ_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_IMAGE_STATE_READ_INDEX));
/* image state command buffer write only*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_image_state_write_buffer,
0,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_IMAGE_STATE_WRITE_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_IMAGE_STATE_WRITE_INDEX));
if (avc_state->mbenc_brc_buffer_size > 0) {
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&(avc_ctx->res_mbenc_brc_buffer),
0,
}
/* AVC_ME Distortion 2D surface buffer,input/output. is it res_brc_dist_data_surface*/
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_dist_data_surface,
1,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_DISTORTION_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_DISTORTION_INDEX));
/* BRC const data 2D surface buffer */
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_const_data_buffer,
1,
(is_g95 ? GEN95_AVC_FRAME_BRC_UPDATE_CONSTANT_DATA_INDEX : GEN9_AVC_FRAME_BRC_UPDATE_CONSTANT_DATA_INDEX));
/* MB statistical data surface*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_mb_status_buffer,
0,
struct generic_enc_codec_state * generic_state = (struct generic_enc_codec_state *)vme_context->generic_enc_state;
/* brc history buffer*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_brc_history_buffer,
0,
/* MB qp data buffer is it same as res_mbbrc_mb_qp_data_surface*/
if (generic_state->mb_brc_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_mbbrc_mb_qp_data_surface,
1,
/* BRC roi feature*/
if (generic_state->brc_roi_enable) {
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_mbbrc_roi_surface,
0,
}
/* MB statistical data surface*/
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&avc_ctx->res_mb_status_buffer,
0,
/*pak obj command buffer output*/
size = frame_mb_size * 16 * 4;
gpe_resource = &avc_priv_surface->res_mb_code_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/*mv data buffer output*/
size = frame_mb_size * 32 * 4;
gpe_resource = &avc_priv_surface->res_mv_data_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
} else {
obj_surface = encode_state->input_yuv_object;
}
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_AVC_MBENC_CURR_Y_INDEX);
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
1,
if (generic_state->hme_enabled) {
/*memv input 4x*/
gpe_resource = &(avc_ctx->s4x_memv_data_buffer);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_AVC_MBENC_MV_DATA_FROM_ME_INDEX);
/* memv distortion input*/
gpe_resource = &(avc_ctx->s4x_memv_distortion_buffer);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
if (param->mb_const_data_buffer_in_use) {
size = 16 * AVC_QP_MAX * sizeof(unsigned int);
gpe_resource = &avc_ctx->res_mbbrc_const_data_buffer;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
gpe_resource = &(avc_ctx->res_mb_qp_data_surface);
else
gpe_resource = &(avc_ctx->res_mbbrc_mb_qp_data_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
} else {
obj_surface = encode_state->input_yuv_object;
}
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX);
/*input ref YUV surface*/
if (!obj_surface || !obj_surface->private_data)
break;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX + i * 2 + 1);
}
} else {
obj_surface = encode_state->input_yuv_object;
}
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_1_INDEX);
if (!obj_surface || !obj_surface->private_data)
break;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_1_INDEX + i * 2 + 1);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX + i * 2 + 2);
if (i == 0) {
/*pak obj command buffer output(mb code)*/
size = frame_mb_size * 16 * 4;
gpe_resource = &avc_priv_surface->res_mb_code_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/*mv data buffer output*/
size = frame_mb_size * 32 * 4;
gpe_resource = &avc_priv_surface->res_mv_data_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
}
if (i < INTEL_AVC_MAX_BWD_REF_NUM) {
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_1_INDEX + i * 2 + 1 + INTEL_AVC_MAX_BWD_REF_NUM);
}
/* BRC distortion data buffer for I frame*/
if (mbenc_i_frame_dist_in_use) {
gpe_resource = &(avc_ctx->res_brc_dist_data_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
avc_priv_surface = obj_surface->private_data;
if (avc_state->ref_pic_select_list_supported && avc_priv_surface->is_as_ref) {
gpe_resource = &(avc_priv_surface->res_ref_pic_select_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/*mb status buffer input*/
size = frame_mb_size * 16 * 4;
gpe_resource = &(avc_ctx->res_mb_status_buffer);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
} else if (avc_state->flatness_check_enable) {
gpe_resource = &(avc_ctx->res_flatness_check_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/*mad buffer input*/
size = 4;
gpe_resource = &(avc_ctx->res_mad_data_buffer);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
if (avc_state->mbenc_brc_buffer_size > 0) {
size = avc_state->mbenc_brc_buffer_size;
gpe_resource = &(avc_ctx->res_mbenc_brc_buffer);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
if (avc_state->arbitrary_num_mbs_in_slice) {
/*slice surface input*/
gpe_resource = &(avc_ctx->res_mbenc_slice_map_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
if (!mbenc_i_frame_dist_in_use) {
if (avc_state->mb_disable_skip_map_enable) {
gpe_resource = &(avc_ctx->res_mb_disable_skip_map_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
}
if (generic_state->frame_type != SLICE_TYPE_I) {
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/*==== pak obj command buffer output ====*/
size = frame_mb_nums * FEI_AVC_MB_CODE_BUFFER_SIZE;
gpe_resource = &avc_priv_surface->res_mb_code_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/*=== mv data buffer output */
size = frame_mb_nums * FEI_AVC_MV_DATA_BUFFER_SIZE;
gpe_resource = &avc_priv_surface->res_mv_data_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/* === current input Y (binding table offset = 3)=== */
obj_surface = encode_state->input_yuv_object;
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
GEN9_AVC_MBENC_CURR_Y_INDEX);
/* === current input UV === (binding table offset == 4)*/
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
1,
GEN9_AVC_MBENC_CURR_UV_INDEX);
/* === input current YUV surface, (binding table offset == 15) === */
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX);
/*== input current YUV surface, (binding table offset == 32)*/
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_1_INDEX);
obj_surface = SURFACE(surface_id);
if (!obj_surface || !obj_surface->private_data)
break;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX + i * 2 + 1);
}
if (!obj_surface || !obj_surface->private_data)
break;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_0_INDEX + i * 2 + 2);
if (i == 0) {
/* mb code of Backward reference frame */
size = frame_mb_nums * FEI_AVC_MB_CODE_BUFFER_SIZE;
gpe_resource = &avc_priv_surface->res_mb_code_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/* mv data of backward ref frame */
size = frame_mb_nums * FEI_AVC_MV_DATA_BUFFER_SIZE;
gpe_resource = &avc_priv_surface->res_mv_data_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
}
//again
if (i < INTEL_AVC_MAX_BWD_REF_NUM) {
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_MBENC_VME_INTER_PRED_CURR_PIC_IDX_1_INDEX + i * 2 + 1);
}
avc_priv_surface = obj_surface->private_data;
if (avc_state->ref_pic_select_list_supported && avc_priv_surface->is_as_ref) {
gpe_resource = &(avc_priv_surface->res_ref_pic_select_surface);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
(fei_param->mb_ctrl != VA_INVALID_ID)) {
size = frame_mb_nums * FEI_AVC_MB_CONTROL_BUFFER_SIZE;
gpe_resource = &avc_priv_surface->res_fei_mb_cntrl_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
if (fei_param->mv_predictor_enable && (fei_param->mv_predictor != VA_INVALID_ID)) {
size = frame_mb_nums * 48; //sizeof (VAEncMVPredictorH264Intel) == 40
gpe_resource = &avc_priv_surface->res_fei_mv_predictor_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
if (fei_param->mb_qp && (fei_param->qp != VA_INVALID_ID)) {
size = frame_mb_nums + 3;
gpe_resource = &avc_priv_surface->res_fei_mb_qp_surface,
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
/*=== FEI distortion surface ====*/
size = frame_mb_nums * 48; //sizeof (VAEncFEIDistortionBufferH264Intel) == 48
gpe_resource = &avc_priv_surface->res_fei_vme_distortion_surface;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
case INTEL_ENC_HME_4x : {
/*memv output 4x*/
gpe_resource = &avc_ctx->s4x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/*memv input 16x*/
if (generic_state->b16xme_enabled) {
gpe_resource = &avc_ctx->s16x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
}
/* brc distortion output*/
gpe_resource = &avc_ctx->res_brc_dist_data_surface;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_AVC_ME_BRC_DISTORTION_INDEX);
/* memv distortion output*/
gpe_resource = &avc_ctx->s4x_memv_distortion_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
obj_surface = encode_state->reconstructed_object;
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_4x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX);
/*input ref scaled YUV surface*/
input_surface = avc_priv_surface->scaled_4x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX + i * 2 + 1);
}
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_4x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX);
input_surface = avc_priv_surface->scaled_4x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX + i * 2 + 1);
}
}
case INTEL_ENC_HME_16x : {
gpe_resource = &avc_ctx->s16x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
if (generic_state->b32xme_enabled) {
gpe_resource = &avc_ctx->s32x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
obj_surface = encode_state->reconstructed_object;
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_16x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX);
input_surface = avc_priv_surface->scaled_16x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX + i * 2 + 1);
}
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_16x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX);
input_surface = avc_priv_surface->scaled_16x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX + i * 2 + 1);
}
}
case INTEL_ENC_HME_32x : {
gpe_resource = &avc_ctx->s32x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
obj_surface = encode_state->reconstructed_object;
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_32x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX);
input_surface = avc_priv_surface->scaled_32x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_FWD_REF_INDEX + i * 2 + 1);
}
avc_priv_surface = obj_surface->private_data;
input_surface = avc_priv_surface->scaled_32x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX);
input_surface = avc_priv_surface->scaled_32x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
GEN9_AVC_ME_CURR_FOR_BWD_REF_INDEX + i * 2 + 1);
}
obj_surface = encode_state->reference_objects[0];
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_WP_INPUT_REF_SURFACE_INDEX);
obj_surface = avc_ctx->wp_output_pic_select_surface_obj[curbe_param->ref_list_idx];
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
GEN9_AVC_WP_OUTPUT_SCALED_SURFACE_INDEX);
}
/*HME mv data surface memv output 4x*/
gpe_resource = &avc_ctx->s4x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/* memv distortion */
gpe_resource = &avc_ctx->s4x_memv_distortion_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
/*buffer output*/
size = 32 * 4 * 4;
gpe_resource = &avc_ctx->res_sfd_output_buffer;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
gpe_resource,
0,
}
if (gpe_buffer)
- gen9_add_buffer_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_gpe_surface(ctx, gpe_context,
gpe_buffer, is_raw_buffer,
size == 0 ? gpe_buffer->size - offset : size,
offset, bti_idx);
}
if (gpe_buffer) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
gpe_buffer,
is_media_block_rw,
format,
bti_idx);
} else if (surface_object) {
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
surface_object,
0, is_media_block_rw, format,
bti_idx);
if (has_uv_surface)
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
surface_object,
1, is_media_block_rw, format,
bti_idx + 1);
surface_object = priv_ctx->gpe_surfaces[surface_type].surface_object;
if (surface_object)
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
surface_object, bti_idx);
}
else
surface_format = I965_SURFACEFORMAT_R8_UNORM;
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
scaling_param->input_surface,
0, 1, surface_format,
GEN9_HEVC_SCALING_FRAME_SRC_Y_INDEX);
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
scaling_param->output_surface,
0, 1, surface_format,
GEN9_HEVC_SCALING_FRAME_DST_Y_INDEX);
scaling_param->enable_mb_variance_output ||
scaling_param->enable_mb_pixel_average_output) &&
scaling_param->use_4x_scaling) {
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
scaling_param->pres_mbv_proc_stat_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
switch (hme_type) {
case HEVC_HME_4X:
scaled_surf_id = HEVC_SCALED_SURF_4X_ID;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s4x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_HEVC_ME_MV_DATA_SURFACE_INDEX);
if (generic_state->b16xme_enabled)
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s16x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_HEVC_ME_16X_MV_DATA_SURFACE_INDEX);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->res_brc_me_dist_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_HEVC_ME_BRC_DISTORTION_INDEX);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s4x_memv_distortion_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
case HEVC_HME_16X:
scaled_surf_id = HEVC_SCALED_SURF_16X_ID;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s16x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_HEVC_ME_MV_DATA_SURFACE_INDEX);
if (generic_state->b32xme_enabled)
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s32x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
GEN9_HEVC_ME_32X_MV_DATA_SURFACE_INDEX);
else
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s16x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
break;
case HEVC_HME_32X:
scaled_surf_id = HEVC_SCALED_SURF_32X_ID;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
&priv_ctx->s32x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
obj_surface = encode_state->reconstructed_object;
surface_priv = (struct gen9_hevc_surface_priv *)obj_surface->private_data;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
surface_priv->scaled_surface_obj[scaled_surf_id],
GEN9_HEVC_ME_CURR_FOR_FWD_REF_INDEX);
break;
surface_priv = (struct gen9_hevc_surface_priv *)obj_surface->private_data;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
surface_priv->scaled_surface_obj[scaled_surf_id],
GEN9_HEVC_ME_CURR_FOR_FWD_REF_INDEX + i * 2 + 1);
}
obj_surface = encode_state->reconstructed_object;
surface_priv = (struct gen9_hevc_surface_priv *)obj_surface->private_data;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
surface_priv->scaled_surface_obj[scaled_surf_id],
GEN9_HEVC_ME_CURR_FOR_BWD_REF_INDEX);
break;
surface_priv = (struct gen9_hevc_surface_priv *)obj_surface->private_data;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
surface_priv->scaled_surface_obj[scaled_surf_id],
GEN9_HEVC_ME_CURR_FOR_BWD_REF_INDEX + i * 2 + 1);
}
{
struct gen9_encoder_context_vp9 *vme_context = encoder_context->vme_context;
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&vme_context->res_brc_history_buffer,
0,
0,
VP9_BTI_BRC_HISTORY_G9);
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&vme_context->s4x_memv_distortion_buffer,
1,
vp9_priv_surface = (struct gen9_surface_vp9 *)(obj_surface->private_data);
obj_surface = vp9_priv_surface->scaled_4x_surface_obj;
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
obj_surface,
0, 1,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_BRC_SRCY4X_G9
);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
VP9_BTI_BRC_VME_COARSE_INTRA_G9);
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
&vme_context->s4x_memv_distortion_buffer,
1,
struct gen9_encoder_context_vp9 *vme_context = encoder_context->vme_context;
/* 0. BRC history buffer */
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
brc_gpe_context,
&vme_context->res_brc_history_buffer,
0,
VP9_BTI_BRC_HISTORY_G9);
/* 1. Constant data buffer */
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
brc_gpe_context,
&vme_context->res_brc_const_data_buffer,
0,
VP9_BTI_BRC_CONSTANT_DATA_G9);
/* 2. Distortion 2D surface buffer */
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
brc_gpe_context,
&vme_context->s4x_memv_distortion_buffer,
1,
VP9_BTI_BRC_DISTORTION_G9);
/* 3. pak buffer */
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
brc_gpe_context,
&vme_context->res_brc_mmdk_pak_buffer,
0,
VP9_BTI_BRC_MBENC_CURBE_OUTPUT_G9);
/* 6. BRC_PIC_STATE read buffer */
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_pic_state_brc_read_buffer,
0,
vme_context->res_pic_state_brc_read_buffer.size,
VP9_BTI_BRC_PIC_STATE_INPUT_G9);
/* 7. BRC_PIC_STATE write buffer */
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_pic_state_brc_write_hfw_read_buffer,
0,
vme_context->res_pic_state_brc_write_hfw_read_buffer.size,
VP9_BTI_BRC_PIC_STATE_OUTPUT_G9);
/* 8. SEGMENT_STATE read buffer */
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_seg_state_brc_read_buffer,
0,
vme_context->res_seg_state_brc_read_buffer.size,
VP9_BTI_BRC_SEGMENT_STATE_INPUT_G9);
/* 9. SEGMENT_STATE write buffer */
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_seg_state_brc_write_buffer,
0,
vme_context->res_seg_state_brc_write_buffer.size,
VP9_BTI_BRC_SEGMENT_STATE_OUTPUT_G9);
/* 10. Bitstream size buffer */
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_brc_bitstream_size_buffer,
0,
vme_context->res_brc_bitstream_size_buffer.size,
0,
VP9_BTI_BRC_BITSTREAM_SIZE_G9);
- gen9_add_buffer_gpe_surface(ctx, brc_gpe_context,
+ i965_add_buffer_gpe_surface(ctx, brc_gpe_context,
&vme_context->res_brc_hfw_data_buffer,
0,
vme_context->res_brc_hfw_data_buffer.size,
gpe_resource = param->pres_4x_memv_data_buffer;
}
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
if (param->b16xme_enabled) {
gpe_resource = param->pres_16x_memv_data_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
if (!param->use_16x_me) {
gpe_resource = param->pres_me_brc_distortion_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
gpe_resource = param->pres_me_distortion_buffer;
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
gpe_resource,
1,
I965_SURFACEFORMAT_R8_UNORM,
else
input_surface = vp9_priv_surface->scaled_4x_surface_obj;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
VP9_BTI_ME_CURR_PIC_L0);
else
input_surface = vp9_priv_surface->dys_4x_surface_obj;
}
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti + 1);
ref_bti += 2;
input_surface = vp9_priv_surface->dys_4x_surface_obj;
}
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti + 1);
ref_bti += 2;
else
input_surface = vp9_priv_surface->dys_4x_surface_obj;
}
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
input_surface,
ref_bti + 1);
ref_bti += 2;
else
surface_format = I965_SURFACEFORMAT_R8_UNORM;
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
scaling_surface_param->input_surface,
0, 1, surface_format,
scaling_bti->scaling_frame_src_y);
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
scaling_surface_param->output_surface,
0, 1, surface_format,
scaling_bti->scaling_frame_dst_y);
{
if (surface_param->input_frame)
- gen9_add_adv_gpe_surface(ctx,
+ i965_add_adv_gpe_surface(ctx,
gpe_context,
surface_param->input_frame,
VP9_BTI_DYS_INPUT_NV12);
if (surface_param->output_frame) {
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
surface_param->output_frame,
0,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_DYS_OUTPUT_Y);
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
surface_param->output_frame,
1,
case VP9_MEDIA_STATE_MBENC_I_32x32: {
obj_surface = mbenc_param->curr_frame_obj;
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_MBENC_CURR_Y_G9);
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
1,
if (mbenc_param->segmentation_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_segmentation_map,
1,
res_size = 16 * mbenc_param->frame_width_in_mb *
mbenc_param->frame_height_in_mb * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mode_decision,
0,
case VP9_MEDIA_STATE_MBENC_I_16x16: {
obj_surface = mbenc_param->curr_frame_obj;
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_MBENC_CURR_Y_G9);
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
1,
I965_SURFACEFORMAT_R16_UINT,
VP9_BTI_MBENC_CURR_UV_G9);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
VP9_BTI_MBENC_CURR_NV12_G9);
if (mbenc_param->segmentation_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_segmentation_map,
1,
res_size = 16 * mbenc_param->frame_width_in_mb *
mbenc_param->frame_height_in_mb * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mode_decision,
0,
case VP9_MEDIA_STATE_MBENC_P: {
obj_surface = mbenc_param->curr_frame_obj;
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_MBENC_CURR_Y_G9);
- gen9_add_2d_gpe_surface(ctx, gpe_context,
+ i965_add_2d_gpe_surface(ctx, gpe_context,
obj_surface,
1,
1,
I965_SURFACEFORMAT_R16_UINT,
VP9_BTI_MBENC_CURR_UV_G9);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
obj_surface,
VP9_BTI_MBENC_CURR_NV12_G9);
else
tmp_input = obj_surface;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_LAST_NV12_G9);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_LAST_NV12_G9 + 1);
else
tmp_input = obj_surface;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_GOLD_NV12_G9);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_GOLD_NV12_G9 + 1);
else
tmp_input = obj_surface;
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_ALTREF_NV12_G9);
- gen9_add_adv_gpe_surface(ctx, gpe_context,
+ i965_add_adv_gpe_surface(ctx, gpe_context,
tmp_input,
VP9_BTI_MBENC_ALTREF_NV12_G9 + 1);
}
if (mbenc_param->hme_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
mbenc_param->ps4x_memv_data_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_MBENC_HME_MV_DATA_G9);
- gen9_add_buffer_2d_gpe_surface(ctx, gpe_context,
+ i965_add_buffer_2d_gpe_surface(ctx, gpe_context,
mbenc_param->ps4x_memv_distortion_buffer,
1,
I965_SURFACEFORMAT_R8_UNORM,
}
if (mbenc_param->segmentation_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_segmentation_map,
1,
res_size = 16 * mbenc_param->frame_width_in_mb *
mbenc_param->frame_height_in_mb * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mode_decision_prev,
0,
0,
VP9_BTI_MBENC_MODE_DECISION_PREV_G9);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mode_decision,
0,
0,
VP9_BTI_MBENC_MODE_DECISION_G9);
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_output_16x16_inter_modes,
1,
case VP9_MEDIA_STATE_MBENC_TX: {
obj_surface = mbenc_param->curr_frame_obj;
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
0,
I965_SURFACEFORMAT_R8_UNORM,
VP9_BTI_MBENC_CURR_Y_G9);
- gen9_add_2d_gpe_surface(ctx,
+ i965_add_2d_gpe_surface(ctx,
gpe_context,
obj_surface,
1,
VP9_BTI_MBENC_CURR_UV_G9);
if (mbenc_param->segmentation_enabled) {
- gen9_add_buffer_2d_gpe_surface(ctx,
+ i965_add_buffer_2d_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_segmentation_map,
1,
res_size = 16 * mbenc_param->frame_width_in_mb *
mbenc_param->frame_height_in_mb * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mode_decision,
0,
VP9_BTI_MBENC_MODE_DECISION_G9);
res_size = frame_width_in_sb * frame_height_in_sb * 4 * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mb_code_surface,
0,
res_size = frame_width_in_sb * frame_height_in_sb *
64 * 16 * sizeof(unsigned int);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
mbenc_param->pres_mb_code_surface,
0,
#include "i965_defines.h"
#include "i965_drv_video.h"
#include "i965_encoder.h"
+#include "i965_gpe_utils.h"
#include "i965_encoder_vp8.h"
#include "vp8_probs.h"
#include "vpx_quant.h"
}
static void
-i965_add_2d_gpe_surface(VADriverContextP ctx,
- struct intel_encoder_context *encoder_context,
- struct i965_gpe_context *gpe_context,
- struct object_surface *obj_surface,
- int is_uv_surface,
- int is_media_block_rw,
- unsigned int format,
- int index)
-{
- struct i965_encoder_vp8_context *vp8_context = encoder_context->vme_context;
- struct i965_gpe_table *gpe = vp8_context->gpe_table;
- struct i965_gpe_resource gpe_resource;
- struct i965_gpe_surface gpe_surface;
-
- memset(&gpe_surface, 0, sizeof(gpe_surface));
-
- i965_object_surface_to_2d_gpe_resource(&gpe_resource, obj_surface);
- gpe_surface.gpe_resource = &gpe_resource;
- gpe_surface.is_2d_surface = 1;
- gpe_surface.is_uv_surface = !!is_uv_surface;
- gpe_surface.is_media_block_rw = !!is_media_block_rw;
-
- gpe_surface.cacheability_control = vp8_context->mocs;
- gpe_surface.format = format;
-
- gpe->context_add_surface(gpe_context, &gpe_surface, index);
- i965_free_gpe_resource(&gpe_resource);
-}
-
-static void
-i965_add_adv_gpe_surface(VADriverContextP ctx,
- struct intel_encoder_context *encoder_context,
- struct i965_gpe_context *gpe_context,
- struct object_surface *obj_surface,
- int index)
-{
- struct i965_encoder_vp8_context *vp8_context = encoder_context->vme_context;
- struct i965_gpe_table *gpe = vp8_context->gpe_table;
- struct i965_gpe_resource gpe_resource;
- struct i965_gpe_surface gpe_surface;
-
- memset(&gpe_surface, 0, sizeof(gpe_surface));
-
- i965_object_surface_to_2d_gpe_resource(&gpe_resource, obj_surface);
- gpe_surface.gpe_resource = &gpe_resource;
- gpe_surface.is_adv_surface = 1;
- gpe_surface.cacheability_control = vp8_context->mocs;
- gpe_surface.v_direction = I965_VDIRECTION_FULL_FRAME;
-
- gpe->context_add_surface(gpe_context, &gpe_surface, index);
- i965_free_gpe_resource(&gpe_resource);
-}
-
-static void
-i965_add_buffer_gpe_surface(VADriverContextP ctx,
- struct intel_encoder_context *encoder_context,
- struct i965_gpe_context *gpe_context,
- struct i965_gpe_resource *gpe_buffer,
- int is_raw_buffer,
- unsigned int size,
- unsigned int offset,
- int index)
-{
- struct i965_encoder_vp8_context *vp8_context = encoder_context->vme_context;
- struct i965_gpe_table *gpe = vp8_context->gpe_table;
- struct i965_gpe_surface gpe_surface;
-
- memset(&gpe_surface, 0, sizeof(gpe_surface));
-
- gpe_surface.gpe_resource = gpe_buffer;
- gpe_surface.is_buffer = 1;
- gpe_surface.is_raw_buffer = !!is_raw_buffer;
- gpe_surface.cacheability_control = vp8_context->mocs;
- gpe_surface.size = size;
- gpe_surface.offset = offset;
-
- gpe->context_add_surface(gpe_context, &gpe_surface, index);
-}
-
-static void
-i965_add_buffer_2d_gpe_surface(VADriverContextP ctx,
- struct intel_encoder_context *encoder_context,
- struct i965_gpe_context *gpe_context,
- struct i965_gpe_resource *gpe_buffer,
- int is_media_block_rw,
- unsigned int format,
- int index)
-{
- struct i965_encoder_vp8_context *vp8_context = encoder_context->vme_context;
- struct i965_gpe_table *gpe = vp8_context->gpe_table;
- struct i965_gpe_surface gpe_surface;
-
- memset(&gpe_surface, 0, sizeof(gpe_surface));
-
- gpe_surface.gpe_resource = gpe_buffer;
- gpe_surface.is_2d_surface = 1;
- gpe_surface.is_media_block_rw = !!is_media_block_rw;
- gpe_surface.cacheability_control = vp8_context->mocs;
- gpe_surface.format = format;
-
- gpe->context_add_surface(gpe_context, &gpe_surface, index);
-}
-
-static void
i965_add_dri_buffer_gpe_surface(VADriverContextP ctx,
struct intel_encoder_context *encoder_context,
struct i965_gpe_context *gpe_context,
i965_dri_object_to_buffer_gpe_resource(&gpe_resource, bo);
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&gpe_resource,
is_raw_buffer,
i965_dri_object_to_2d_gpe_resource(&gpe_resource, bo, width, height, pitch);
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&gpe_resource,
is_media_block_rw,
struct i965_encoder_vp8_context *vp8_context = encoder_context->vme_context;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_history_buffer,
0,
VP8_BTI_BRC_INIT_RESET_HISTORY);
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_distortion_buffer,
1,
struct scaling_surface_parameters *params)
{
i965_add_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
params->input_obj_surface,
0,
I965_SURFACEFORMAT_R32_UNORM,
VP8_BTI_SCALING_FRAME_SRC_Y);
i965_add_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
params->output_obj_surface,
0,
}
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
me_gpe_buffer,
1,
if (vp8_context->hme_16x_enabled) {
me_gpe_buffer = &vp8_context->me_16x_mv_data_buffer;
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
me_gpe_buffer,
1,
if (!params->use_16x_me) {
me_gpe_buffer = &vp8_context->me_4x_distortion_buffer;
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
me_gpe_buffer,
1,
me_gpe_buffer = me_brc_distortion_buffer;
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
me_gpe_buffer,
1,
}
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_VME_INTER_PRED);
if (obj_surface) {
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF1_PIC);
case 2:
case 6:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF1_PIC);
case 3:
case 7:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF2_PIC);
switch (vp8_context->ref_frame_ctrl) {
case 4:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF1_PIC);
case 5:
case 6:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF2_PIC);
case 7:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_ME_REF3_PIC);
/* Per MB output data buffer */
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->mb_coded_buffer,
0,
/* Current input surface Y & UV */
i965_add_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
encode_state->input_yuv_object,
0,
VP8_BTI_MBENC_CURR_Y);
i965_add_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
encode_state->input_yuv_object,
1,
/* Current surface for VME */
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
encode_state->input_yuv_object,
VP8_BTI_MBENC_VME);
/* Histogram buffer */
size = VP8_HISTOGRAM_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->histogram_buffer,
1,
if (vp8_context->frame_type == MPEG_I_PICTURE) {
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->mb_mode_cost_luma_buffer,
0,
VP8_BTI_MBENC_MB_MODE_COST_LUMA);
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->block_mode_cost_buffer,
0,
/* Chroma recon buffer */
size = vp8_context->frame_width_in_mbs * vp8_context->frame_height_in_mbs * 64;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->chroma_recon_buffer,
0,
if (params->i_frame_dist_in_use) {
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
params->me_brc_distortion_buffer,
1,
if (obj_surface) {
i965_add_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
0,
VP8_BTI_MBENC_CURR_Y_DOWNSCALED);
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_VME_COARSE_INTRA);
size = vp8_context->frame_width_in_mbs * vp8_context->frame_height_in_mbs * 64;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->mb_coded_buffer,
1,
if (vp8_context->hme_enabled) {
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->me_4x_mv_data_buffer,
1,
}
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->reference_frame_mb_count_buffer ,
0,
VP8_BTI_MBENC_REF_MB_COUNT);
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
encode_state->input_yuv_object,
VP8_BTI_MBENC_INTER_PRED);
case 5:
case 7:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF1_PIC);
case 2:
case 6:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF1_PIC);
case 3:
case 7:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF2_PIC);
switch (vp8_context->ref_frame_ctrl) {
case 4:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF1_PIC);
case 5:
case 6:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF2_PIC);
case 7:
i965_add_adv_gpe_surface(ctx,
- encoder_context,
gpe_context,
obj_surface,
VP8_BTI_MBENC_REF3_PIC);
}
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->per_mb_quant_data_buffer,
1,
VP8_BTI_MBENC_P_PER_MB_QUANT);
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->me_4x_distortion_buffer,
0,
size = vp8_context->frame_width_in_mbs * vp8_context->frame_height_in_mbs * 16;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pred_mv_data_buffer,
0,
size = 16 * sizeof(unsigned int);
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->mode_cost_update_buffer,
1,
/* BRC history buffer */
size = VP8_BRC_HISTORY_BUFFER_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_history_buffer,
0,
/* PAK Statistics buffer */
size = sizeof(struct vp8_brc_pak_statistics);
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_pak_statistics_buffer,
0,
/* Encoder CFG command surface - read only */
size = VP8_BRC_IMG_STATE_SIZE_PER_PASS * VP8_BRC_MAXIMUM_NUM_PASSES;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_vp8_cfg_command_write_buffer,
0,
/* Encoder CFG command surface - write only */
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_vp8_cfg_command_write_buffer,
0,
/* BRC Distortion data buffer - input/output */
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
is_intra ? &vp8_context->brc_distortion_buffer : &vp8_context->me_4x_distortion_buffer,
1,
/* Constant Data Surface */
size = VP8_BRC_CONSTANT_DATA_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_vp8_constant_data_buffer,
0,
/* Segmap surface */
i965_add_buffer_2d_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_segment_map_buffer,
0,
/* Histogram buffer */
size = VP8_HISTOGRAM_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->histogram_buffer,
1,
// Reference mode probability
size = VP8_MODE_PROPABILITIES_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_ref_mode_probs_buffer,
1,
// Mode probability
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_mode_probs_buffer,
1,
// Reference Token probability
size = VP8_COEFFS_PROPABILITIES_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_ref_coeff_probs_buffer,
1,
// Token probability
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_coeff_probs_buffer,
1,
// Frame header
size = VP8_FRAME_HEADER_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_frame_header_buffer,
0,
if (brc_enabled) {
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_vp8_cfg_command_write_buffer,
0,
VP8_BTI_MPU_HEADER_METADATA);
} else {
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_picture_state_buffer,
0,
// Picture state MFX_VP8_PIC_STATE
size = 38 * sizeof(unsigned int);
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_picture_state_buffer,
0,
// Mpu Bitstream
size = VP8_MPU_BITSTREAM_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_mpu_bitstream_buffer,
0,
// Token bits Data Surface
size = VP8_TOKEN_BITS_DATA_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_token_bits_data_buffer,
1,
// Entropy cost table
size = VP8_ENTROPY_COST_TABLE_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_entropy_cost_table_buffer,
1,
//Mode Cost Update Surface
size = 16 * sizeof(unsigned int);
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->mode_cost_update_buffer,
0,
// Pak token statistics
size = VP8_TOKEN_STATISTICS_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_pak_token_statistics_buffer,
1,
// Pak token Update flags
size = VP8_COEFFS_PROPABILITIES_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_pak_token_update_flags_buffer,
0,
// Entropy cost
size = VP8_ENTROPY_COST_TABLE_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_entropy_cost_table_buffer,
1,
// Frame header
size = VP8_FRAME_HEADER_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_frame_header_buffer,
0,
// Default token token probability
size = VP8_COEFFS_PROPABILITIES_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_default_token_probability_buffer,
0,
// Picture state surface
size = VP8_PICTURE_STATE_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_picture_state_buffer,
0,
// MPU Curbe info from TPU
size = VP8_TOKEN_BITS_DATA_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_token_bits_data_buffer,
0,
if (brc_enabled) {
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->brc_vp8_cfg_command_write_buffer,
0,
VP8_BTI_TPU_HEADER_METADATA);
} else {
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_picture_state_buffer,
0,
// Current frame token probability
size = VP8_COEFFS_PROPABILITIES_SIZE;
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_coeff_probs_buffer,
0,
// Hardware token probability pass 1
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_ref_coeff_probs_buffer,
0,
// key frame token probability
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_updated_token_probability_buffer,
0,
// update token probability
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_key_frame_token_probability_buffer,
0,
// Hardware token probability pass 2
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_hw_token_probability_pak_pass_2_buffer,
0,
// Repak Decision
i965_add_buffer_gpe_surface(ctx,
- encoder_context,
gpe_context,
&vp8_context->pak_mpu_tpu_repak_decision_buffer,
0,
}
void
-gen9_add_2d_gpe_surface(VADriverContextP ctx,
+i965_add_2d_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct object_surface *obj_surface,
int is_uv_surface,
}
void
-gen9_add_adv_gpe_surface(VADriverContextP ctx,
+i965_add_adv_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct object_surface *obj_surface,
int index)
}
void
-gen9_add_buffer_gpe_surface(VADriverContextP ctx,
+i965_add_buffer_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct i965_gpe_resource *gpe_buffer,
int is_raw_buffer,
}
void
-gen9_add_buffer_2d_gpe_surface(VADriverContextP ctx,
+i965_add_buffer_2d_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct i965_gpe_resource *gpe_buffer,
int is_media_block_rw,
struct i965_gpe_resource gpe_resource;
i965_dri_object_to_buffer_gpe_resource(&gpe_resource, bo);
- gen9_add_buffer_gpe_surface(ctx,
+ i965_add_buffer_gpe_surface(ctx,
gpe_context,
&gpe_resource,
is_raw_buffer,
struct gpe_media_object_walker_parameter *walker_param);
extern void
-gen9_add_2d_gpe_surface(VADriverContextP ctx,
+i965_add_2d_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct object_surface *obj_surface,
int is_uv_surface,
unsigned int format,
int index);
extern void
-gen9_add_adv_gpe_surface(VADriverContextP ctx,
+i965_add_adv_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct object_surface *obj_surface,
int index);
extern void
-gen9_add_buffer_gpe_surface(VADriverContextP ctx,
+i965_add_buffer_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct i965_gpe_resource *gpe_buffer,
int is_raw_buffer,
unsigned int offset,
int index);
extern void
-gen9_add_buffer_2d_gpe_surface(VADriverContextP ctx,
+i965_add_buffer_2d_gpe_surface(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct i965_gpe_resource *gpe_buffer,
int is_media_block_rw,