Lines Matching defs:msg
81 struct ruvd_msg *msg;
159 dec->msg = (struct ruvd_msg *)ptr;
160 memset(dec->msg, 0, sizeof(*dec->msg));
173 if (!dec->msg || !dec->fb)
182 dec->msg = NULL;
559 /* get mpeg2 specific msg bits */
600 /* get mpeg4 specific msg bits */
805 dec->msg->size = sizeof(*dec->msg);
806 dec->msg->msg_type = RUVD_MSG_DESTROY;
807 dec->msg->stream_handle = dec->stream_handle;
946 dec->msg->size = sizeof(*dec->msg);
947 dec->msg->msg_type = RUVD_MSG_DECODE;
948 dec->msg->stream_handle = dec->stream_handle;
949 dec->msg->status_report_feedback_number = dec->frame_number;
951 dec->msg->body.decode.stream_type = dec->stream_type;
952 dec->msg->body.decode.decode_flags = 0x1;
953 dec->msg->body.decode.width_in_samples = dec->base.width;
954 dec->msg->body.decode.height_in_samples = dec->base.height;
958 dec->msg->body.decode.width_in_samples = align(dec->msg->body.decode.width_in_samples, 16) / 16;
959 dec->msg->body.decode.height_in_samples = align(dec->msg->body.decode.height_in_samples, 16) / 16;
963 dec->msg->body.decode.dpb_size = dec->dpb.res->buf->size;
964 dec->msg->body.decode.bsd_size = bs_size;
965 dec->msg->body.decode.db_pitch = align(dec->base.width, get_db_pitch_alignment(dec));
967 dt = dec->set_dtb(dec->msg, (struct vl_video_buffer *)target);
971 dec->msg->body.decode.codec.h264 = get_h264_msg(dec, (struct pipe_h264_picture_desc*)picture);
975 dec->msg->body.decode.codec.vc1 = get_vc1_msg((struct pipe_vc1_picture_desc*)picture);
979 dec->msg->body.decode.codec.mpeg2 = get_mpeg2_msg(dec, (struct pipe_mpeg12_picture_desc*)picture);
983 dec->msg->body.decode.codec.mpeg4 = get_mpeg4_msg(dec, (struct pipe_mpeg4_picture_desc*)picture);
994 dec->msg->body.decode.db_surf_tile_config = dec->msg->body.decode.dt_surf_tile_config;
995 dec->msg->body.decode.extension_support = 0x1;
1137 dec->msg->size = sizeof(*dec->msg);
1138 dec->msg->msg_type = RUVD_MSG_CREATE;
1139 dec->msg->stream_handle = dec->stream_handle;
1140 dec->msg->body.create.stream_type = dec->stream_type;
1141 dec->msg->body.create.width_in_samples = dec->base.width;
1142 dec->msg->body.create.height_in_samples = dec->base.height;
1143 dec->msg->body.create.dpb_size = dpb_size;
1206 void ruvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma,
1209 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w;
1212 msg->body.decode.dt_tiling_mode = RUVD_TILE_LINEAR;
1213 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_LINEAR;
1216 msg->body.decode.dt_tiling_mode = RUVD_TILE_8X8;
1217 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_1D_THIN;
1220 msg->body.decode.dt_tiling_mode = RUVD_TILE_8X8;
1221 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_2D_THIN;
1228 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0);
1230 msg->body.decode.dt_chroma_top_offset = texture_offset(chroma, 0);
1231 if (msg->body.decode.dt_field_mode) {
1232 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1);
1234 msg->body.decode.dt_chroma_bottom_offset = texture_offset(chroma, 1);
1236 msg->body.decode.dt_luma_bottom_offset = msg->body.decode.dt_luma_top_offset;
1237 msg->body.decode.dt_chroma_bottom_offset = msg->body.decode.dt_chroma_top_offset;
1246 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw));
1247 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh));
1248 msg->body.decode.dt_surf_tile_config |= RUVD_MACRO_TILE_ASPECT_RATIO(macro_tile_aspect(luma->u.legacy.mtilea));