| 1 | /*===================== begin_copyright_notice ================================== |
| 2 | |
| 3 | Copyright (c) 2017-2019, Intel Corporation |
| 4 | |
| 5 | Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | copy of this software and associated documentation files (the "Software"), |
| 7 | to deal in the Software without restriction, including without limitation |
| 8 | the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 | and/or sell copies of the Software, and to permit persons to whom the |
| 10 | Software is furnished to do so, subject to the following conditions: |
| 11 | |
| 12 | The above copyright notice and this permission notice shall be included |
| 13 | in all copies or substantial portions of the Software. |
| 14 | |
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 21 | OTHER DEALINGS IN THE SOFTWARE. |
| 22 | |
| 23 | ======================= end_copyright_notice ==================================*/ |
| 24 | //! |
| 25 | //! \file mhw_vdbox_vdenc_hwcmd_g12_X.cpp |
| 26 | //! \brief Auto-generated definitions for MHW commands and states. |
| 27 | //! |
| 28 | |
| 29 | #include "mhw_vdbox_vdenc_hwcmd_g12_X.h" |
| 30 | #include "mos_utilities.h" |
| 31 | |
| 32 | mhw_vdbox_vdenc_g12_X::VDENC_64B_Aligned_Lower_Address_CMD::VDENC_64B_Aligned_Lower_Address_CMD() |
| 33 | { |
| 34 | DW0.Value = 0; |
| 35 | |
| 36 | } |
| 37 | |
| 38 | mhw_vdbox_vdenc_g12_X::VDENC_64B_Aligned_Upper_Address_CMD::VDENC_64B_Aligned_Upper_Address_CMD() |
| 39 | { |
| 40 | DW0.Value = 0; |
| 41 | |
| 42 | } |
| 43 | |
| 44 | mhw_vdbox_vdenc_g12_X::VDENC_Surface_Control_Bits_CMD::VDENC_Surface_Control_Bits_CMD() |
| 45 | { |
| 46 | DW0.Value = 0; |
| 47 | DW0.ArbitrationPriorityControl = ARBITRATION_PRIORITY_CONTROL_HIGHESTPRIORITY; |
| 48 | DW0.MemoryCompressionEnable = MEMORY_COMPRESSION_ENABLE_DISABLE; |
| 49 | DW0.CompressionType = 0; |
| 50 | DW0.CacheSelect = CACHE_SELECT_UNNAMED0; |
| 51 | DW0.TiledResourceMode = TILED_RESOURCE_MODE_TRMODENONE; |
| 52 | |
| 53 | } |
| 54 | |
| 55 | mhw_vdbox_vdenc_g12_X::VDENC_Sub_Mb_Pred_Mode_CMD::VDENC_Sub_Mb_Pred_Mode_CMD() |
| 56 | { |
| 57 | DW0.Value = 0; |
| 58 | |
| 59 | } |
| 60 | |
| 61 | mhw_vdbox_vdenc_g12_X::VDENC_Block_8x8_4_CMD::VDENC_Block_8x8_4_CMD() |
| 62 | { |
| 63 | DW0.Value = 0; |
| 64 | |
| 65 | } |
| 66 | |
| 67 | mhw_vdbox_vdenc_g12_X::VDENC_Delta_MV_XY_CMD::VDENC_Delta_MV_XY_CMD() |
| 68 | { |
| 69 | DW0.Value = 0; |
| 70 | DW0.X0 = X0_UNNAMED0; |
| 71 | DW0.Y0 = Y0_UNNAMED0; |
| 72 | |
| 73 | DW1.Value = 0; |
| 74 | DW1.X1 = X1_UNNAMED0; |
| 75 | DW1.Y1 = Y1_UNNAMED0; |
| 76 | |
| 77 | DW2.Value = 0; |
| 78 | DW2.X2 = X2_UNNAMED0; |
| 79 | DW2.Y2 = Y2_UNNAMED0; |
| 80 | |
| 81 | DW3.Value = 0; |
| 82 | DW3.X3 = X3_UNNAMED0; |
| 83 | DW3.Y3 = Y3_UNNAMED0; |
| 84 | |
| 85 | } |
| 86 | |
| 87 | mhw_vdbox_vdenc_g12_X::VDENC_Colocated_MV_Picture_CMD::VDENC_Colocated_MV_Picture_CMD() |
| 88 | { |
| 89 | } |
| 90 | |
| 91 | mhw_vdbox_vdenc_g12_X::VDENC_Down_Scaled_Reference_Picture_CMD::VDENC_Down_Scaled_Reference_Picture_CMD() |
| 92 | { |
| 93 | } |
| 94 | |
| 95 | mhw_vdbox_vdenc_g12_X::VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD::VDENC_FRAME_BASED_STATISTICS_STREAMOUT_CMD() |
| 96 | { |
| 97 | DW0.Value = 0; |
| 98 | |
| 99 | DW1.Value = 0; |
| 100 | |
| 101 | DW2.Value = 0; |
| 102 | |
| 103 | DW3.Value = 0; |
| 104 | |
| 105 | DW4.Value = 0; |
| 106 | |
| 107 | MOS_ZeroMemory(&Reserved160, sizeof(Reserved160)); |
| 108 | DW17.Value = 0; |
| 109 | |
| 110 | DW18.Value = 0; |
| 111 | |
| 112 | DW19.Value = 0; |
| 113 | |
| 114 | } |
| 115 | |
| 116 | mhw_vdbox_vdenc_g12_X::VDENC_Mode_StreamOut_Data_CMD::VDENC_Mode_StreamOut_Data_CMD() |
| 117 | { |
| 118 | DW0.Value = 0; |
| 119 | |
| 120 | DW1.Value = 0; |
| 121 | |
| 122 | DW2.Value = 0; |
| 123 | DW2.IntermbmodeChromaPredictionMode = INTERMBMODECHROMA_PREDICTION_MODE_UNNAMED0; |
| 124 | DW2.Intrambmode = INTRAMBMODE_UNNAMED0; |
| 125 | DW2.Intrambflag = INTRAMBFLAG_INTER; |
| 126 | DW2.Lastmbflag = LASTMBFLAG_NOTLAST; |
| 127 | |
| 128 | DW3.Value = 0; |
| 129 | |
| 130 | DW4.Value = 0; |
| 131 | |
| 132 | DW13.Value = 0; |
| 133 | |
| 134 | DW14.Value = 0; |
| 135 | |
| 136 | DW15.Value = 0; |
| 137 | |
| 138 | } |
| 139 | |
| 140 | mhw_vdbox_vdenc_g12_X::VDENC_Original_Uncompressed_Picture_CMD::VDENC_Original_Uncompressed_Picture_CMD() |
| 141 | { |
| 142 | } |
| 143 | |
| 144 | mhw_vdbox_vdenc_g12_X::VDENC_Reference_Picture_CMD::VDENC_Reference_Picture_CMD() |
| 145 | { |
| 146 | } |
| 147 | |
| 148 | mhw_vdbox_vdenc_g12_X::VDENC_Row_Store_Scratch_Buffer_Picture_CMD::VDENC_Row_Store_Scratch_Buffer_Picture_CMD() |
| 149 | { |
| 150 | } |
| 151 | |
| 152 | mhw_vdbox_vdenc_g12_X::VDENC_Statistics_Streamout_CMD::VDENC_Statistics_Streamout_CMD() |
| 153 | { |
| 154 | } |
| 155 | |
| 156 | mhw_vdbox_vdenc_g12_X::VDENC_Streamin_Data_Picture_CMD::VDENC_Streamin_Data_Picture_CMD() |
| 157 | { |
| 158 | } |
| 159 | |
| 160 | mhw_vdbox_vdenc_g12_X::VDENC_STREAMIN_STATE_CMD::VDENC_STREAMIN_STATE_CMD() |
| 161 | { |
| 162 | DW0.Value = 0; |
| 163 | DW0.Forceintra = FORCEINTRA_DISABLE; |
| 164 | DW0.Forceskip = FORCESKIP_DISABLE; |
| 165 | |
| 166 | DW1.Value = 0; |
| 167 | DW1.Qpprimey = QPPRIMEY_UNNAMED0; |
| 168 | |
| 169 | DW2.Value = 0; |
| 170 | |
| 171 | DW3.Value = 0; |
| 172 | |
| 173 | DW4.Value = 0; |
| 174 | |
| 175 | MOS_ZeroMemory(&Reserved160, sizeof(Reserved160)); |
| 176 | } |
| 177 | |
| 178 | mhw_vdbox_vdenc_g12_X::VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD::VDENC_HEVC_VP9_FRAME_BASED_STATISTICS_STREAMOUT_CMD() |
| 179 | { |
| 180 | DW0.Value = 0; |
| 181 | |
| 182 | DW1.Value = 0; |
| 183 | |
| 184 | DW2.Value = 0; |
| 185 | |
| 186 | DW3.Value = 0; |
| 187 | |
| 188 | DW4.Value = 0; |
| 189 | |
| 190 | DW5.Value = 0; |
| 191 | |
| 192 | DW6.Value = 0; |
| 193 | |
| 194 | DW7.Value = 0; |
| 195 | |
| 196 | DW8.Value = 0; |
| 197 | |
| 198 | DW9.Value = 0; |
| 199 | |
| 200 | DW10.Value = 0; |
| 201 | |
| 202 | DW11.Value = 0; |
| 203 | |
| 204 | DW12.Value = 0; |
| 205 | |
| 206 | DW13.Value = 0; |
| 207 | |
| 208 | DW14.Value = 0; |
| 209 | |
| 210 | DW15.Value = 0; |
| 211 | |
| 212 | DW16.Value = 0; |
| 213 | |
| 214 | DW17.Value = 0; |
| 215 | |
| 216 | DW18.Value = 0; |
| 217 | |
| 218 | DW19.Value = 0; |
| 219 | |
| 220 | DW20.Value = 0; |
| 221 | |
| 222 | DW21.Value = 0; |
| 223 | |
| 224 | DW22.Value = 0; |
| 225 | |
| 226 | DW23.Value = 0; |
| 227 | |
| 228 | MOS_ZeroMemory(&Reserved768, sizeof(Reserved768)); |
| 229 | DW29.Value = 0; |
| 230 | |
| 231 | DW30.Value = 0; |
| 232 | |
| 233 | DW31.Value = 0; |
| 234 | |
| 235 | } |
| 236 | |
| 237 | mhw_vdbox_vdenc_g12_X::VDENC_HEVC_VP9_STREAMIN_STATE_CMD::VDENC_HEVC_VP9_STREAMIN_STATE_CMD() |
| 238 | { |
| 239 | DW0.Value = 0; |
| 240 | DW0.Numimepredictors = NUMIMEPREDICTORS_UNNAMED0; |
| 241 | |
| 242 | DW1.Value = 0; |
| 243 | |
| 244 | DW2.Value = 0; |
| 245 | |
| 246 | DW3.Value = 0; |
| 247 | |
| 248 | DW4.Value = 0; |
| 249 | |
| 250 | DW5.Value = 0; |
| 251 | |
| 252 | DW6.Value = 0; |
| 253 | |
| 254 | DW7.Value = 0; |
| 255 | |
| 256 | DW8.Value = 0; |
| 257 | |
| 258 | DW9.Value = 0; |
| 259 | |
| 260 | DW10.Value = 0; |
| 261 | |
| 262 | DW11.Value = 0; |
| 263 | |
| 264 | DW12.Value = 0; |
| 265 | |
| 266 | DW13.Value = 0; |
| 267 | |
| 268 | DW14.Value = 0; |
| 269 | |
| 270 | DW15.Value = 0; |
| 271 | |
| 272 | } |
| 273 | |
| 274 | mhw_vdbox_vdenc_g12_X::VDENC_Surface_State_Fields_CMD::VDENC_Surface_State_Fields_CMD() |
| 275 | { |
| 276 | DW0.Value = 0; |
| 277 | |
| 278 | DW1.Value = 0; |
| 279 | DW1.TileWalk = TILE_WALK_YMAJOR; |
| 280 | DW1.TiledSurface = TILED_SURFACE_TRUE; |
| 281 | DW1.HalfPitchForChroma = HALF_PITCH_FOR_CHROMA_DISABLE; |
| 282 | |
| 283 | DW2.Value = 0; |
| 284 | |
| 285 | DW3.Value = 0; |
| 286 | |
| 287 | } |
| 288 | |
| 289 | mhw_vdbox_vdenc_g12_X::VD_PIPELINE_FLUSH_CMD::VD_PIPELINE_FLUSH_CMD() |
| 290 | { |
| 291 | DW0.Value = 0; |
| 292 | DW0.DwordCountN = GetOpLength(dwSize); |
| 293 | DW0.Subopcodeb = SUBOPCODEB_UNNAMED0; |
| 294 | DW0.Subopcodea = SUBOPCODEA_UNNAMED0; |
| 295 | DW0.MediaCommandOpcode = MEDIA_COMMAND_OPCODE_EXTENDEDCOMMAND; |
| 296 | DW0.Pipeline = PIPELINE_MEDIA; |
| 297 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 298 | |
| 299 | DW1.Value = 0; |
| 300 | |
| 301 | } |
| 302 | |
| 303 | mhw_vdbox_vdenc_g12_X::VDENC_WEIGHTSOFFSETS_STATE_CMD::VDENC_WEIGHTSOFFSETS_STATE_CMD() |
| 304 | { |
| 305 | DW0.Value = 0; |
| 306 | DW0.DwLength = GetOpLength(dwSize); |
| 307 | DW0.Subopb = SUBOPB_VDENCAVCWEIGHTSOFFSETSTATE; |
| 308 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 309 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 310 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 311 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 312 | |
| 313 | DW1.Value = 0; |
| 314 | |
| 315 | DW2.Value = 0; |
| 316 | |
| 317 | } |
| 318 | |
| 319 | mhw_vdbox_vdenc_g12_X::VDENC_CONST_QPT_STATE_CMD::VDENC_CONST_QPT_STATE_CMD() |
| 320 | { |
| 321 | DW0.Value = 0; |
| 322 | DW0.DwordLength = GetOpLength(dwSize); |
| 323 | DW0.Subopb = SUBOPB_VDENCCONSTQPTSTATE; |
| 324 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 325 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 326 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 327 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 328 | |
| 329 | MOS_ZeroMemory(DW1_10.Value, sizeof(DW1_10.Value)); |
| 330 | DW11.Value = 0; |
| 331 | MOS_ZeroMemory(DW12_24.Value, sizeof(DW12_24.Value)); |
| 332 | DW25.Value = 0; |
| 333 | MOS_ZeroMemory(DW26_38.Value, sizeof(DW26_38.Value)); |
| 334 | DW39.Value = 0; |
| 335 | MOS_ZeroMemory(DW40_45.Value, sizeof(DW40_45.Value)); |
| 336 | DW46.Value = 0; |
| 337 | MOS_ZeroMemory(DW47_52.Value, sizeof(DW47_52.Value)); |
| 338 | DW53.Value = 0; |
| 339 | MOS_ZeroMemory(DW54_59.Value, sizeof(DW54_59.Value)); |
| 340 | DW60.Value = 0; |
| 341 | } |
| 342 | |
| 343 | mhw_vdbox_vdenc_g12_X::VDENC_DS_REF_SURFACE_STATE_CMD::VDENC_DS_REF_SURFACE_STATE_CMD() |
| 344 | { |
| 345 | DW0.Value = 0; |
| 346 | DW0.DwordLength = GetOpLength(dwSize); |
| 347 | DW0.Subopb = SUBOPB_VDENCDSREFSURFACESTATE; |
| 348 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 349 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 350 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 351 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 352 | |
| 353 | DW1.Value = 0; |
| 354 | |
| 355 | } |
| 356 | |
| 357 | mhw_vdbox_vdenc_g12_X::VDENC_IMG_STATE_CMD::VDENC_IMG_STATE_CMD() |
| 358 | { |
| 359 | DW0.Value = 0; |
| 360 | DW0.DwordLength = GetOpLength(dwSize); |
| 361 | DW0.Subopb = SUBOPB_VDENCIMGSTATE; |
| 362 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 363 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 364 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 365 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 366 | |
| 367 | DW1.Value = 0; |
| 368 | DW1.BidirectionalMixDisable = BIDIRECTIONAL_MIX_DISABLE_SUBBLOCKENABLED; |
| 369 | DW1.VdencPerfmode = VDENC_PERFMODE_NORMAL; |
| 370 | DW1.TimeBudgetOverflowCheck = TIME_BUDGET_OVERFLOW_CHECK_DISABLED; |
| 371 | DW1.VdencExtendedPakObjCmdEnable = VDENC_EXTENDED_PAK_OBJ_CMD_ENABLE_DISABLE; |
| 372 | DW1.Transform8X8Flag = TRANSFORM_8X8_FLAG_DISABLED; |
| 373 | DW1.VdencL1CachePriority = VDENC_L1_CACHE_PRIORITY_UNNAMED0; |
| 374 | |
| 375 | DW2.Value = 0; |
| 376 | DW2.BidirectionalWeight = 0; |
| 377 | |
| 378 | DW3.Value = 0; |
| 379 | |
| 380 | DW4.Value = 0; |
| 381 | DW4.SubPelMode = SUB_PEL_MODE_UNNAMED0; |
| 382 | DW4.ForwardTransformSkipCheckEnable = FORWARD_TRANSFORM_SKIP_CHECK_ENABLE_FTDISABLED; |
| 383 | DW4.BmeDisableForFbrMessage = BME_DISABLE_FOR_FBR_MESSAGE_BMEENABLED; |
| 384 | DW4.BlockBasedSkipEnabled = BLOCK_BASED_SKIP_ENABLED_UNNAMED0; |
| 385 | DW4.InterSadMeasureAdjustment = INTER_SAD_MEASURE_ADJUSTMENT_NONE; |
| 386 | DW4.IntraSadMeasureAdjustment = INTRA_SAD_MEASURE_ADJUSTMENT_NONE; |
| 387 | DW4.SubMacroblockSubPartitionMask = 0; |
| 388 | DW4.BlockBasedSkipType = BLOCK_BASED_SKIP_TYPE_UNNAMED0; |
| 389 | |
| 390 | DW5.Value = 0; |
| 391 | DW5.CrePrefetchEnable = CRE_PREFETCH_ENABLE_UNNAMED0; |
| 392 | DW5.HmeRef1Disable = HME_REF1_DISABLE_UNNAMED0; |
| 393 | DW5.ConstrainedIntraPredictionFlag = CONSTRAINED_INTRA_PREDICTION_FLAG_UNNAMED0; |
| 394 | DW5.PictureType = PICTURE_TYPE_I; |
| 395 | |
| 396 | DW6.Value = 0; |
| 397 | |
| 398 | DW7.Value = 0; |
| 399 | |
| 400 | DW8.Value = 0; |
| 401 | DW8.LumaIntraPartitionMask = 0; |
| 402 | DW8.MvCostScalingFactor = MV_COST_SCALING_FACTOR_QPEL; |
| 403 | DW8.RefidCostModeSelect = REFID_COST_MODE_SELECT_MODE0; |
| 404 | |
| 405 | DW9.Value = 0; |
| 406 | |
| 407 | DW10.Value = 0; |
| 408 | |
| 409 | DW11.Value = 0; |
| 410 | |
| 411 | DW12.Value = 0; |
| 412 | |
| 413 | DW13.Value = 0; |
| 414 | |
| 415 | DW14.Value = 0; |
| 416 | |
| 417 | DW15.Value = 0; |
| 418 | |
| 419 | DW16.Value = 0; |
| 420 | |
| 421 | DW17.Value = 0; |
| 422 | |
| 423 | DW18.Value = 0; |
| 424 | DW18.AvcIntra16X16ModeMask = 0; |
| 425 | DW18.AvcIntraChromaModeMask = 0; |
| 426 | DW18.IntraComputeTypeIntracomputetype = INTRA_COMPUTE_TYPE_INTRACOMPUTETYPE_UNNAMED0; |
| 427 | |
| 428 | DW19.Value = 0; |
| 429 | |
| 430 | DW20.Value = 0; |
| 431 | |
| 432 | DW21.Value = 0; |
| 433 | DW21.IntraRefreshEnableRollingIEnable = INTRAREFRESHENABLE_ROLLING_I_ENABLE_DISABLE; |
| 434 | DW21.IntraRefreshMode = INTRAREFRESHMODE_ROWBASED; |
| 435 | |
| 436 | DW22.Value = 0; |
| 437 | |
| 438 | DW23.Value = 0; |
| 439 | |
| 440 | DW24.Value = 0; |
| 441 | |
| 442 | DW25.Value = 0; |
| 443 | |
| 444 | DW26.Value = 0; |
| 445 | DW26.HmeRefWindowsCombiningThreshold = HME_REF_WINDOWS_COMBINING_THRESHOLD_UNNAMED0; |
| 446 | |
| 447 | DW27.Value = 0; |
| 448 | |
| 449 | DW28.Value = 0; |
| 450 | |
| 451 | DW29.Value = 0; |
| 452 | |
| 453 | DW30.Value = 0; |
| 454 | |
| 455 | DW31.Value = 0; |
| 456 | |
| 457 | DW32.Value = 0; |
| 458 | |
| 459 | DW33.Value = 0; |
| 460 | |
| 461 | DW34.Value = 0; |
| 462 | DW34.PpmvDisable = PPMV_DISABLE_UNNAMED0; |
| 463 | DW34.LongtermReferenceFrameBwdRef0Indicator = LONGTERM_REFERENCE_FRAME_BWD_REF0_INDICATOR_SHORT_TERMREFERENCE; |
| 464 | DW34.LongtermReferenceFrameFwdRef2Indicator = LONGTERM_REFERENCE_FRAME_FWD_REF2_INDICATOR_SHORT_TERMREFERENCE; |
| 465 | DW34.LongtermReferenceFrameFwdRef1Indicator = LONGTERM_REFERENCE_FRAME_FWD_REF1_INDICATOR_SHORT_TERMREFERENCE; |
| 466 | DW34.LongtermReferenceFrameFwdRef0Indicator = LONGTERM_REFERENCE_FRAME_FWD_REF0_INDICATOR_SHORT_TERMREFERENCE; |
| 467 | |
| 468 | } |
| 469 | |
| 470 | mhw_vdbox_vdenc_g12_X::VDENC_PIPE_BUF_ADDR_STATE_CMD::VDENC_PIPE_BUF_ADDR_STATE_CMD() |
| 471 | { |
| 472 | DW0.Value = 0; |
| 473 | DW0.DwordLength = GetOpLength(dwSize); |
| 474 | DW0.Subopb = SUBOPB_VDENCPIPEBUFADDRSTATE; |
| 475 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 476 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 477 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 478 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 479 | DW61.Value = 0; |
| 480 | DsFwdRef1 = {}; |
| 481 | DsFwdRef14X = {}; |
| 482 | } |
| 483 | |
| 484 | mhw_vdbox_vdenc_g12_X::VDENC_PIPE_MODE_SELECT_CMD::VDENC_PIPE_MODE_SELECT_CMD() |
| 485 | { |
| 486 | DW0.Value = 0; |
| 487 | DW0.DwordLength = GetOpLength(dwSize); |
| 488 | DW0.Subopb = SUBOPB_VDENCPIPEMODESELECT; |
| 489 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 490 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 491 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 492 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 493 | |
| 494 | DW1.Value = 0; |
| 495 | DW1.StandardSelect = 0; |
| 496 | DW1.FrameStatisticsStreamOutEnable = FRAME_STATISTICS_STREAM_OUT_ENABLE_DISABLE; |
| 497 | DW1.TlbPrefetchEnable = TLB_PREFETCH_ENABLE_DISABLE; |
| 498 | DW1.PakThresholdCheckEnable = PAK_THRESHOLD_CHECK_ENABLE_DISABLESTATICSLICEMODE; |
| 499 | DW1.VdencStreamInEnable = VDENC_STREAM_IN_ENABLE_DISABLE; |
| 500 | DW1.BitDepth = BIT_DEPTH_8BIT; |
| 501 | DW1.PakChromaSubSamplingType = 0; |
| 502 | DW1.PrimaryChannelSelectionForRgbEncoding = PRIMARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED1; |
| 503 | DW1.FirstSecondaryChannelSelectionForRgbEncoding = FIRST_SECONDARY_CHANNEL_SELECTION_FOR_RGB_ENCODING_UNNAMED2; |
| 504 | DW1.StreamingBufferConfig = STREAMING_BUFFER_UNSUPPORTED; |
| 505 | |
| 506 | DW2.Value = 0; |
| 507 | DW2.HmeRegionPreFetchenable = HME_REGION_PRE_FETCHENABLE_UNNAMED1; |
| 508 | DW2.Topprefetchenablemode = TOPPREFETCHENABLEMODE_UNNAMED1; |
| 509 | DW2.LeftpreFetchatwraparound = LEFTPRE_FETCHATWRAPAROUND_UNNAMED1; |
| 510 | DW2.Verticalshift32Minus1 = VERTICALSHIFT32MINUS1_UNNAMED0; |
| 511 | DW2.Hzshift32Minus1 = HZSHIFT32MINUS1_UNNAMED3; |
| 512 | DW2.NumVerticalReqMinus1 = NUMVERTICALREQMINUS1_UNNAMED11; |
| 513 | DW2.Numhzreqminus1 = NUMHZREQMINUS1_UNNAMED2; |
| 514 | DW2.PreFetchOffsetForReferenceIn16PixelIncrement = PRE_FETCH_OFFSET_FOR_REFERENCE_IN_16_PIXEL_INCREMENT_UNNAMED0; |
| 515 | |
| 516 | DW3.Value = 0; |
| 517 | DW3.SourceLumaPackedDataTlbPreFetchenable = SOURCE_LUMAPACKED_DATA_TLB_PRE_FETCHENABLE_UNNAMED1; |
| 518 | DW3.SourceChromaTlbPreFetchenable = SOURCE_CHROMA_TLB_PRE_FETCHENABLE_UNNAMED1; |
| 519 | DW3.Verticalshift32Minus1Src = VERTICALSHIFT32MINUS1SRC_UNNAMED0; |
| 520 | DW3.Hzshift32Minus1Src = HZSHIFT32MINUS1SRC_UNNAMED3; |
| 521 | DW3.Numverticalreqminus1Src = NUMVERTICALREQMINUS1SRC_UNNAMED0; |
| 522 | DW3.Numhzreqminus1Src = NUMHZREQMINUS1SRC_UNNAMED0; |
| 523 | DW3.PreFetchoffsetforsource = PRE_FETCHOFFSETFORSOURCE_UNNAMED_4; |
| 524 | |
| 525 | DW4.Value = 0; |
| 526 | |
| 527 | DW5.Value = 0; |
| 528 | DW5.CaptureMode = CAPTURE_MODE_UNNAMED0; |
| 529 | DW5.ParallelCaptureAndEncodeSessionId = PARALLEL_CAPTURE_AND_ENCODE_SESSION_ID_UNNAMED0; |
| 530 | |
| 531 | } |
| 532 | |
| 533 | mhw_vdbox_vdenc_g12_X::VDENC_REF_SURFACE_STATE_CMD::VDENC_REF_SURFACE_STATE_CMD() |
| 534 | { |
| 535 | DW0.Value = 0; |
| 536 | DW0.DwordLength = GetOpLength(dwSize); |
| 537 | DW0.Subopb = SUBOPB_VDENCREFSURFACESTATE; |
| 538 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 539 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 540 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 541 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 542 | |
| 543 | DW1.Value = 0; |
| 544 | |
| 545 | } |
| 546 | |
| 547 | mhw_vdbox_vdenc_g12_X::VDENC_SRC_SURFACE_STATE_CMD::VDENC_SRC_SURFACE_STATE_CMD() |
| 548 | { |
| 549 | DW0.Value = 0; |
| 550 | DW0.DwordLength = GetOpLength(dwSize); |
| 551 | DW0.Subopb = SUBOPB_VDENCSRCSURFACESTATE; |
| 552 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 553 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 554 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 555 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 556 | |
| 557 | DW1.Value = 0; |
| 558 | |
| 559 | } |
| 560 | |
| 561 | mhw_vdbox_vdenc_g12_X::VDENC_WALKER_STATE_CMD::VDENC_WALKER_STATE_CMD() |
| 562 | { |
| 563 | DW0.Value = 0; |
| 564 | DW0.DwordLength = GetOpLength(dwSize); |
| 565 | DW0.Subopb = SUBOPB_VDENCWALKERSTATE; |
| 566 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 567 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 568 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 569 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 570 | |
| 571 | DW1.Value = 0; |
| 572 | |
| 573 | DW2.Value = 0; |
| 574 | |
| 575 | DW3.Value = 0; |
| 576 | |
| 577 | DW4.Value = 0; |
| 578 | |
| 579 | DW5.Value = 0; |
| 580 | |
| 581 | DW6.Value = 0; |
| 582 | |
| 583 | DW7.Value = 0; |
| 584 | |
| 585 | DW8.Value = 0; |
| 586 | |
| 587 | DW9.Value = 0; |
| 588 | |
| 589 | DW11.Value = 0; |
| 590 | |
| 591 | DW12.Value = 0; |
| 592 | |
| 593 | DW13.Value = 0; |
| 594 | |
| 595 | DW14.Value = 0x3f400000; |
| 596 | |
| 597 | DW15.Value = 0; |
| 598 | |
| 599 | DW16.Value = 0x3f3f3f; |
| 600 | } |
| 601 | |
| 602 | mhw_vdbox_vdenc_g12_X::VDENC_CONTROL_STATE_CMD::VDENC_CONTROL_STATE_CMD() |
| 603 | { |
| 604 | DW0.Value = 0; |
| 605 | DW0.DwordLength = GetOpLength(dwSize); |
| 606 | DW0.MediaInstructionCommand = 0xB; |
| 607 | DW0.MediaInstructionOpcode = 0x1; |
| 608 | DW0.PipelineType = 0x2; |
| 609 | DW0.CommandType = 0x3; |
| 610 | |
| 611 | DW1.Value = 0; |
| 612 | } |
| 613 | |
| 614 | mhw_vdbox_vdenc_g12_X::VDENC_CMD1_CMD::VDENC_CMD1_CMD() |
| 615 | { |
| 616 | DW0.Value = 0; |
| 617 | DW0.DwordLength = GetOpLength(dwSize); |
| 618 | DW0.Subopb = SUBOPB_VDENCCMD1CMD; |
| 619 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 620 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 621 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 622 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 623 | |
| 624 | DW1.Value = 0; |
| 625 | |
| 626 | DW2.Value = 0; |
| 627 | |
| 628 | DW3.Value = 0; |
| 629 | |
| 630 | DW4.Value = 0; |
| 631 | |
| 632 | DW5.Value = 0; |
| 633 | |
| 634 | DW6.Value = 0; |
| 635 | |
| 636 | DW7.Value = 0; |
| 637 | |
| 638 | DW8.Value = 0; |
| 639 | |
| 640 | DW9.Value = 0; |
| 641 | |
| 642 | DW10.Value = 0; |
| 643 | |
| 644 | DW11.Value = 0; |
| 645 | |
| 646 | DW12.Value = 0; |
| 647 | |
| 648 | DW13.Value = 0; |
| 649 | |
| 650 | DW14.Value = 0; |
| 651 | |
| 652 | DW15.Value = 0; |
| 653 | |
| 654 | DW16.Value = 0; |
| 655 | |
| 656 | DW17.Value = 0; |
| 657 | |
| 658 | DW18.Value = 0; |
| 659 | |
| 660 | DW19.Value = 0; |
| 661 | |
| 662 | DW20.Value = 0; |
| 663 | |
| 664 | DW21.Value = 0; |
| 665 | |
| 666 | DW22.Value = 0; |
| 667 | |
| 668 | DW23.Value = 0; |
| 669 | |
| 670 | DW24.Value = 0; |
| 671 | |
| 672 | DW25.Value = 0; |
| 673 | |
| 674 | DW26.Value = 0; |
| 675 | |
| 676 | DW27.Value = 0; |
| 677 | |
| 678 | DW28.Value = 0; |
| 679 | |
| 680 | DW29.Value = 0; |
| 681 | |
| 682 | DW30.Value = 0; |
| 683 | } |
| 684 | |
| 685 | mhw_vdbox_vdenc_g12_X::VDENC_CMD2_CMD::VDENC_CMD2_CMD() |
| 686 | { |
| 687 | DW0.Value = 0; |
| 688 | DW0.DwordLength = GetOpLength(dwSize); |
| 689 | DW0.Subopb = SUBOPB_VDENCCMD2CMD; |
| 690 | DW0.Subopa = SUBOPA_UNNAMED0; |
| 691 | DW0.Opcode = OPCODE_VDENCPIPE; |
| 692 | DW0.Pipeline = PIPELINE_MFXCOMMON; |
| 693 | DW0.CommandType = COMMAND_TYPE_PARALLELVIDEOPIPE; |
| 694 | |
| 695 | DW1.Value = 0; |
| 696 | |
| 697 | DW2.Value = 0; |
| 698 | |
| 699 | DW3.Value = 0; |
| 700 | |
| 701 | DW4.Value = 0; |
| 702 | |
| 703 | DW5.Value = 0; |
| 704 | |
| 705 | DW6.Value = 0; |
| 706 | |
| 707 | DW7.Value = 0; |
| 708 | |
| 709 | DW8.Value = 0; |
| 710 | |
| 711 | DW9.Value = 0; |
| 712 | |
| 713 | DW10.Value = 0; |
| 714 | |
| 715 | DW11.Value = 0; |
| 716 | |
| 717 | DW12.Value = 0; |
| 718 | |
| 719 | DW13.Value = 0; |
| 720 | |
| 721 | DW14.Value = 0; |
| 722 | |
| 723 | DW15.Value = 0; |
| 724 | |
| 725 | DW16.Value = 0; |
| 726 | |
| 727 | DW17.Value = 0; |
| 728 | |
| 729 | DW18.Value = 0; |
| 730 | |
| 731 | DW19.Value = 0; |
| 732 | |
| 733 | DW20.Value = 0; |
| 734 | |
| 735 | DW21.Value = 0; |
| 736 | |
| 737 | DW22.Value = 0; |
| 738 | |
| 739 | DW23.Value = 0; |
| 740 | |
| 741 | DW24.Value = 0; |
| 742 | |
| 743 | DW25.Value = 0; |
| 744 | |
| 745 | DW26.Value = 0; |
| 746 | |
| 747 | DW27.Value = 0; |
| 748 | |
| 749 | DW28.Value = 0; |
| 750 | |
| 751 | DW29.Value = 0; |
| 752 | |
| 753 | DW30.Value = 0; |
| 754 | |
| 755 | DW31.Value = 0; |
| 756 | |
| 757 | DW32.Value = 0; |
| 758 | |
| 759 | DW33.Value = 0; |
| 760 | |
| 761 | DW34.Value = 0; |
| 762 | |
| 763 | DW35.Value = 0; |
| 764 | |
| 765 | DW36.Value = 0; |
| 766 | |
| 767 | DW37.Value = 0; |
| 768 | |
| 769 | DW38.Value = 0; |
| 770 | |
| 771 | DW39.Value = 0; |
| 772 | |
| 773 | DW40.Value = 0; |
| 774 | |
| 775 | DW41.Value = 0; |
| 776 | |
| 777 | DW42.Value = 0; |
| 778 | |
| 779 | DW43.Value = 0; |
| 780 | |
| 781 | DW44.Value = 0; |
| 782 | |
| 783 | DW45.Value = 0; |
| 784 | |
| 785 | DW46.Value = 0; |
| 786 | |
| 787 | DW47.Value = 0; |
| 788 | |
| 789 | DW48.Value = 0; |
| 790 | |
| 791 | DW49.Value = 0; |
| 792 | |
| 793 | DW50.Value = 0; |
| 794 | } |