Lines Matching defs:msg

73    struct ruvd_msg *msg;
150 dec->msg = (struct ruvd_msg *)ptr;
151 memset(dec->msg, 0, sizeof(*dec->msg));
164 if (!dec->msg || !dec->fb)
172 dec->msg = NULL;
861 /* get mpeg2 specific msg bits */
907 /* get mpeg4 specific msg bits */
979 dec->msg->size = sizeof(*dec->msg);
980 dec->msg->msg_type = RUVD_MSG_DESTROY;
981 dec->msg->stream_handle = dec->stream_handle;
1098 dec->msg->size = sizeof(*dec->msg);
1099 dec->msg->msg_type = RUVD_MSG_DECODE;
1100 dec->msg->stream_handle = dec->stream_handle;
1101 dec->msg->status_report_feedback_number = dec->frame_number;
1103 dec->msg->body.decode.stream_type = dec->stream_type;
1104 dec->msg->body.decode.decode_flags = 0x1;
1105 dec->msg->body.decode.width_in_samples = dec->base.width;
1106 dec->msg->body.decode.height_in_samples = dec->base.height;
1110 dec->msg->body.decode.width_in_samples =
1111 align(dec->msg->body.decode.width_in_samples, 16) / 16;
1112 dec->msg->body.decode.height_in_samples =
1113 align(dec->msg->body.decode.height_in_samples, 16) / 16;
1117 dec->msg->body.decode.dpb_size = dec->dpb.res->buf->size;
1118 dec->msg->body.decode.bsd_size = bs_size;
1119 dec->msg->body.decode.db_pitch = align(dec->base.width, get_db_pitch_alignment(dec));
1123 dec->msg->body.decode.dpb_reserved = dec->ctx.res->buf->size;
1125 dt = dec->set_dtb(dec->msg, (struct vl_video_buffer *)target);
1127 dec->msg->body.decode.dt_wa_chroma_top_offset = dec->msg->body.decode.dt_pitch / 2;
1131 dec->msg->body.decode.codec.h264 =
1136 dec->msg->body.decode.codec.h265 =
1151 dec->msg->body.decode.dpb_reserved = dec->ctx.res->buf->size;
1155 dec->msg->body.decode.codec.vc1 = get_vc1_msg((struct pipe_vc1_picture_desc *)picture);
1159 dec->msg->body.decode.codec.mpeg2 =
1164 dec->msg->body.decode.codec.mpeg4 =
1176 dec->msg->body.decode.db_surf_tile_config = dec->msg->body.decode.dt_surf_tile_config;
1177 dec->msg->body.decode.extension_support = 0x1;
1342 dec->msg->size = sizeof(*dec->msg);
1343 dec->msg->msg_type = RUVD_MSG_CREATE;
1344 dec->msg->stream_handle = dec->stream_handle;
1345 dec->msg->body.create.stream_type = dec->stream_type;
1346 dec->msg->body.create.width_in_samples = dec->base.width;
1347 dec->msg->body.create.height_in_samples = dec->base.height;
1348 dec->msg->body.create.dpb_size = dpb_size;
1436 void si_uvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma,
1442 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w;
1445 msg->body.decode.dt_tiling_mode = RUVD_TILE_LINEAR;
1446 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_LINEAR;
1449 msg->body.decode.dt_tiling_mode = RUVD_TILE_8X8;
1450 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_1D_THIN;
1453 msg->body.decode.dt_tiling_mode = RUVD_TILE_8X8;
1454 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_2D_THIN;
1461 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0, type);
1463 msg->body.decode.dt_chroma_top_offset = texture_offset(chroma, 0, type);
1464 if (msg->body.decode.dt_field_mode) {
1465 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1, type);
1467 msg->body.decode.dt_chroma_bottom_offset = texture_offset(chroma, 1, type);
1469 msg->body.decode.dt_luma_bottom_offset = msg->body.decode.dt_luma_top_offset;
1470 msg->body.decode.dt_chroma_bottom_offset = msg->body.decode.dt_chroma_top_offset;
1479 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw));
1480 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh));
1481 msg->body.decode.dt_surf_tile_config |=
1485 msg->body.decode.dt_pitch = luma->u.gfx9.surf_pitch * luma->blk_w;
1487 msg->body.decode.dt_tiling_mode = RUVD_TILE_LINEAR;
1488 msg->body.decode.dt_array_mode = RUVD_ARRAY_MODE_LINEAR;
1489 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0, type);
1490 msg->body.decode.dt_chroma_top_offset = texture_offset(chroma, 0, type);
1491 if (msg->body.decode.dt_field_mode) {
1492 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1, type);
1493 msg->body.decode.dt_chroma_bottom_offset = texture_offset(chroma, 1, type);
1495 msg->body.decode.dt_luma_bottom_offset = msg->body.decode.dt_luma_top_offset;
1496 msg->body.decode.dt_chroma_bottom_offset = msg->body.decode.dt_chroma_top_offset;
1498 msg->body.decode.dt_surf_tile_config = 0;