| 1 |
/* |
| 2 |
* Copyright (c) 2017, Intel Corporation |
| 3 |
* |
| 4 |
* Permission is hereby granted, free of charge, to any person obtaining a |
| 5 |
* copy of this software and associated documentation files (the "Software"), |
| 6 |
* to deal in the Software without restriction, including without limitation |
| 7 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 |
* and/or sell copies of the Software, and to permit persons to whom the |
| 9 |
* Software is furnished to do so, subject to the following conditions: |
| 10 |
* |
| 11 |
* The above copyright notice and this permission notice shall be included |
| 12 |
* in all copies or substantial portions of the Software. |
| 13 |
* |
| 14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 15 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 18 |
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 19 |
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 20 |
* OTHER DEALINGS IN THE SOFTWARE. |
| 21 |
*/ |
| 22 |
//! |
| 23 |
//! \file mhw_state_heap_hwcmd_g8_X.cpp |
| 24 |
//! \brief Auto-generated definitions for MHW commands and states. |
| 25 |
//! |
| 26 |
|
| 27 |
#include "mhw_state_heap_hwcmd_g8_X.h" |
| 28 |
#include "mos_utilities.h" |
| 29 |
|
| 30 |
mhw_state_heap_g8_X::INTERFACE_DESCRIPTOR_DATA_CMD::INTERFACE_DESCRIPTOR_DATA_CMD() |
| 31 |
{ |
| 32 |
DW0.Value = 0; |
| 33 |
|
| 34 |
DW1.Value = 0; |
| 35 |
|
| 36 |
DW2.Value = 0; |
| 37 |
DW2.FloatingPointMode = FLOATING_POINT_MODE_IEEE_754; |
| 38 |
DW2.ThreadPriority = THREAD_PRIORITY_NORMALPRIORITY; |
| 39 |
DW2.SingleProgramFlow = SINGLE_PROGRAM_FLOW_MULTIPLE; |
| 40 |
DW2.DenormMode = DENORM_MODE_FTZ; |
| 41 |
|
| 42 |
DW3.Value = 0; |
| 43 |
DW3.SamplerCount = SAMPLER_COUNT_NOSAMPLERSUSED; |
| 44 |
|
| 45 |
DW4.Value = 0; |
| 46 |
|
| 47 |
DW5.Value = 0; |
| 48 |
|
| 49 |
DW6.Value = 0; |
| 50 |
DW6.SharedLocalMemorySize = SHARED_LOCAL_MEMORY_SIZE_ENCODES0K; |
| 51 |
DW6.RoundingMode = ROUNDING_MODE_RTNE; |
| 52 |
|
| 53 |
DW7.Value = 0; |
| 54 |
|
| 55 |
} |
| 56 |
|
| 57 |
mhw_state_heap_g8_X::BINDING_TABLE_STATE_CMD::BINDING_TABLE_STATE_CMD() |
| 58 |
{ |
| 59 |
DW0.Value = 0; |
| 60 |
|
| 61 |
} |
| 62 |
|
| 63 |
mhw_state_heap_g8_X::RENDER_SURFACE_STATE_CMD::RENDER_SURFACE_STATE_CMD() |
| 64 |
{ |
| 65 |
DW0.Value = 0; |
| 66 |
DW0.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMALMODE; |
| 67 |
DW0.RenderCacheReadWriteMode = RENDER_CACHE_READ_WRITE_MODE_WRITE_ONLYCACHE; |
| 68 |
DW0.TileMode = TILE_MODE_LINEAR; |
| 69 |
DW0.SurfaceHorizontalAlignment = 0; |
| 70 |
DW0.SurfaceVerticalAlignment = 0; |
| 71 |
DW0.SurfaceFormat = SURFACE_FORMAT_R32G32B32A32FLOAT; |
| 72 |
DW0.SurfaceType = SURFACE_TYPE_SURFTYPE1D; |
| 73 |
|
| 74 |
DW1.Value = 0; |
| 75 |
|
| 76 |
DW2.Value = 0; |
| 77 |
|
| 78 |
DW3.Value = 0; |
| 79 |
|
| 80 |
DW4.Value = 0; |
| 81 |
DW4.NumberOfMultisamples = NUMBER_OF_MULTISAMPLES_MULTISAMPLECOUNT1; |
| 82 |
DW4.MultisampledSurfaceStorageFormat = MULTISAMPLED_SURFACE_STORAGE_FORMAT_MSS; |
| 83 |
DW4.RenderTargetAndSampleUnormRotation = RENDER_TARGET_AND_SAMPLE_UNORM_ROTATION_0DEG; |
| 84 |
|
| 85 |
DW5.Value = 0; |
| 86 |
DW5.CoherencyType = COHERENCY_TYPE_GPUCOHERENT; |
| 87 |
DW5.EwaDisableForCube = EWA_DISABLE_FOR_CUBE_ENABLE; |
| 88 |
|
| 89 |
DW6.Value = 0; |
| 90 |
DW6.Obj1.AuxiliarySurfaceMode = AUXILIARY_SURFACE_MODE_AUXNONE; |
| 91 |
|
| 92 |
DW7.Value = 0; |
| 93 |
DW7.ShaderChannelSelectAlpha = SHADER_CHANNEL_SELECT_ALPHA_ZERO; |
| 94 |
DW7.ShaderChannelSelectBlue = SHADER_CHANNEL_SELECT_BLUE_ZERO; |
| 95 |
DW7.ShaderChannelSelectGreen = SHADER_CHANNEL_SELECT_GREEN_ZERO; |
| 96 |
DW7.ShaderChannelSelectRed = SHADER_CHANNEL_SELECT_RED_ZERO; |
| 97 |
DW7.AlphaClearColor = ALPHA_CLEAR_COLOR_CCZERO; |
| 98 |
DW7.BlueClearColor = BLUE_CLEAR_COLOR_CCZERO; |
| 99 |
DW7.GreenClearColor = GREEN_CLEAR_COLOR_CCZERO; |
| 100 |
DW7.RedClearColor = RED_CLEAR_COLOR_CCZERO; |
| 101 |
|
| 102 |
DW8_9.Value[0] = DW8_9.Value[1] = 0; |
| 103 |
|
| 104 |
DW10_11.Value[0] = DW10_11.Value[1] = 0; |
| 105 |
|
| 106 |
DW12.Value = 0; |
| 107 |
|
| 108 |
DW13.Value = 0; |
| 109 |
|
| 110 |
DW14.Value = 0; |
| 111 |
|
| 112 |
} |
| 113 |
|
| 114 |
mhw_state_heap_g8_X::MEDIA_SURFACE_STATE_CMD::MEDIA_SURFACE_STATE_CMD() |
| 115 |
{ |
| 116 |
DW0.Value = 0; |
| 117 |
|
| 118 |
DW1.Value = 0; |
| 119 |
DW1.CrVCbUPixelOffsetVDirection = CRVCBU_PIXEL_OFFSET_V_DIRECTION_UNNAMED0; |
| 120 |
DW1.PictureStructure = PICTURE_STRUCTURE_FRAMEPICTURE; |
| 121 |
|
| 122 |
DW2.Value = 0; |
| 123 |
DW2.TileMode = TILE_MODE_TILEMODELINEAR; |
| 124 |
DW2.AddressControl = ADDRESS_CONTROL_CLAMP; |
| 125 |
DW2.SurfaceFormat = SURFACE_FORMAT_YCRCBNORMAL; |
| 126 |
|
| 127 |
DW3.Value = 0; |
| 128 |
|
| 129 |
DW4.Value = 0; |
| 130 |
|
| 131 |
DW5.Value = 0; |
| 132 |
DW5.SurfaceMemoryObjectControlState = SURFACE_MEMORY_OBJECT_CONTROL_STATE_DEFAULTVAUEDESC; |
| 133 |
|
| 134 |
DW6.Value = 0; |
| 135 |
|
| 136 |
DW7.Value = 0; |
| 137 |
|
| 138 |
} |
| 139 |
|
| 140 |
mhw_state_heap_g8_X::SAMPLER_STATE_CMD::SAMPLER_STATE_CMD() |
| 141 |
{ |
| 142 |
DW0.Value = 0; |
| 143 |
DW0.LodAlgorithm = LOD_ALGORITHM_LEGACY; |
| 144 |
DW0.MinModeFilter = MIN_MODE_FILTER_NEAREST; |
| 145 |
DW0.MagModeFilter = MAG_MODE_FILTER_NEAREST; |
| 146 |
DW0.MipModeFilter = MIP_MODE_FILTER_NONE; |
| 147 |
DW0.LodPreclampMode = LOD_PRECLAMP_MODE_NONE; |
| 148 |
DW0.TextureBorderColorMode = TEXTURE_BORDER_COLOR_MODE_OGL; |
| 149 |
|
| 150 |
DW1.Value = 0; |
| 151 |
DW1.CubeSurfaceControlMode = CUBE_SURFACE_CONTROL_MODE_PROGRAMMED; |
| 152 |
DW1.ShadowFunction = SHADOW_FUNCTION_PREFILTEROPALWAYS; |
| 153 |
DW1.ChromakeyMode = CHROMAKEY_MODE_KEYFILTERKILLONANYMATCH; |
| 154 |
|
| 155 |
DW2.Value = 0; |
| 156 |
DW2.LodClampMagnificationMode = LOD_CLAMP_MAGNIFICATION_MODE_MIPNONE; |
| 157 |
|
| 158 |
DW3.Value = 0; |
| 159 |
DW3.TczAddressControlMode = TCZ_ADDRESS_CONTROL_MODE_WRAP; |
| 160 |
DW3.TcyAddressControlMode = TCY_ADDRESS_CONTROL_MODE_WRAP; |
| 161 |
DW3.TcxAddressControlMode = TCX_ADDRESS_CONTROL_MODE_WRAP; |
| 162 |
DW3.TrilinearFilterQuality = TRILINEAR_FILTER_QUALITY_FULL; |
| 163 |
DW3.MaximumAnisotropy = MAXIMUM_ANISOTROPY_RATIO21; |
| 164 |
|
| 165 |
} |
| 166 |
|
| 167 |
mhw_state_heap_g8_X::SAMPLER_STATE_8x8_AVS_COEFFICIENTS_CMD::SAMPLER_STATE_8x8_AVS_COEFFICIENTS_CMD() |
| 168 |
{ |
| 169 |
DW0.Value = 0; |
| 170 |
|
| 171 |
DW1.Value = 0; |
| 172 |
|
| 173 |
DW2.Value = 0; |
| 174 |
|
| 175 |
DW3.Value = 0; |
| 176 |
|
| 177 |
DW4.Value = 0; |
| 178 |
|
| 179 |
DW5.Value = 0; |
| 180 |
|
| 181 |
DW6.Value = 0; |
| 182 |
|
| 183 |
DW7.Value = 0; |
| 184 |
|
| 185 |
} |
| 186 |
|
| 187 |
mhw_state_heap_g8_X::SAMPLER_STATE_8x8_AVS_CMD::SAMPLER_STATE_8x8_AVS_CMD() |
| 188 |
{ |
| 189 |
DW0.Value = 0; |
| 190 |
DW0.GainFactor = GAIN_FACTOR_UNNAMED44; |
| 191 |
DW0.WeakEdgeThreshold = WEAK_EDGE_THRESHOLD_UNNAMED1; |
| 192 |
DW0.StrongEdgeThreshold = STRONG_EDGE_THRESHOLD_UNNAMED8; |
| 193 |
DW0.R3XCoefficient = R3X_COEFFICIENT_UNNAMED5; |
| 194 |
DW0.R3CCoefficient = R3C_COEFFICIENT_UNNAMED5; |
| 195 |
|
| 196 |
DW1.Value = 0; |
| 197 |
|
| 198 |
DW2.Value = 0; |
| 199 |
DW2.GlobalNoiseEstimation = GLOBAL_NOISE_ESTIMATION_UNNAMED255; |
| 200 |
DW2.NonEdgeWeight = NON_EDGE_WEIGHT_UNNAMED1; |
| 201 |
DW2.RegularWeight = REGULAR_WEIGHT_UNNAMED2; |
| 202 |
DW2.StrongEdgeWeight = STRONG_EDGE_WEIGHT_UNNAMED7; |
| 203 |
DW2.R5XCoefficient = R5X_COEFFICIENT_UNNAMED7; |
| 204 |
DW2.R5CxCoefficient = R5CX_COEFFICIENT_UNNAMED7; |
| 205 |
DW2.R5CCoefficient = R5C_COEFFICIENT_UNNAMED7; |
| 206 |
|
| 207 |
DW3.Value = 0; |
| 208 |
DW3.SatMax = SAT_MAX_UNNAMED31; |
| 209 |
DW3.HueMax = HUE_MAX_UNNAMED14; |
| 210 |
DW3.Enable8TapFilter = ENABLE_8_TAP_FILTER_UNNAMED0; |
| 211 |
DW3.Ief4SmoothEnable = IEF4SMOOTH_ENABLE_UNNAMED0; |
| 212 |
DW3.SkinToneTunedIefEnable = SKIN_TONE_TUNED_IEF_ENABLE_UNNAMED1; |
| 213 |
|
| 214 |
DW4.Value = 0; |
| 215 |
DW4.DiamondMargin = DIAMOND_MARGIN_UNNAMED4; |
| 216 |
DW4.UMid = U_MID_UNNAMED110; |
| 217 |
DW4.VMid = V_MID_UNNAMED154; |
| 218 |
|
| 219 |
DW5.Value = 0; |
| 220 |
DW5.DiamondDv = DIAMOND_DV_UNNAMED0; |
| 221 |
DW5.DiamondTh = DIAMOND_TH_UNNAMED35; |
| 222 |
DW5.HsMargin = HS_MARGIN_UNNAMED3; |
| 223 |
DW5.DiamondDu = DIAMOND_DU_UNNAMED2; |
| 224 |
DW5.Skindetailfactor = SKINDETAILFACTOR_UNNAMED0; |
| 225 |
|
| 226 |
DW6.Value = 0; |
| 227 |
DW6.YPoint1 = Y_POINT_1_UNNAMED46; |
| 228 |
DW6.YPoint2 = Y_POINT_2_UNNAMED47; |
| 229 |
DW6.YPoint3 = Y_POINT_3_UNNAMED254; |
| 230 |
DW6.YPoint4 = Y_POINT_4_UNNAMED255; |
| 231 |
|
| 232 |
DW7.Value = 0; |
| 233 |
|
| 234 |
DW8.Value = 0; |
| 235 |
DW8.P0L = P0L_UNNAMED46; |
| 236 |
DW8.P1L = P1L_UNNAMED216; |
| 237 |
|
| 238 |
DW9.Value = 0; |
| 239 |
DW9.P2L = P2L_UNNAMED236; |
| 240 |
DW9.P3L = P3L_UNNAMED236; |
| 241 |
DW9.B0L = B0L_UNNAMED133; |
| 242 |
DW9.B1L = B1L_UNNAMED130; |
| 243 |
|
| 244 |
DW10.Value = 0; |
| 245 |
DW10.B2L = B2L_UNNAMED130; |
| 246 |
DW10.B3L = B3L_UNNAMED130; |
| 247 |
|
| 248 |
DW11.Value = 0; |
| 249 |
|
| 250 |
DW12.Value = 0; |
| 251 |
DW12.P0U = P0U_UNNAMED46; |
| 252 |
DW12.P1U = P1U_UNNAMED66; |
| 253 |
|
| 254 |
DW13.Value = 0; |
| 255 |
DW13.P2U = P2U_UNNAMED150; |
| 256 |
DW13.P3U = P3U_UNNAMED236; |
| 257 |
DW13.B0U = B0U_UNNAMED143; |
| 258 |
DW13.B1U = B1U_UNNAMED163; |
| 259 |
|
| 260 |
DW14.Value = 0; |
| 261 |
DW14.B2U = B2U_UNNAMED200; |
| 262 |
DW14.B3U = B3U_UNNAMED140; |
| 263 |
|
| 264 |
DW15.Value = 0; |
| 265 |
|
| 266 |
DW152.Value = 0; |
| 267 |
DW152.DefaultSharpnessLevel = DEFAULT_SHARPNESS_LEVEL_UNNAMED0; |
| 268 |
|
| 269 |
DW153.Value = 0; |
| 270 |
DW153.RgbAdaptive = RGB_ADAPTIVE_DISBLE; |
| 271 |
DW153.AdaptiveFilterForAllChannels = ADAPTIVE_FILTER_FOR_ALL_CHANNELS_DISBLE; |
| 272 |
DW153.BypassYAdaptiveFiltering = BYPASS_Y_ADAPTIVE_FILTERING_ENABLE; |
| 273 |
DW153.BypassXAdaptiveFiltering = BYPASS_X_ADAPTIVE_FILTERING_ENABLE; |
| 274 |
|
| 275 |
} |
| 276 |
|
| 277 |
mhw_state_heap_g8_X::SAMPLER_STATE_8x8_CONVOLVE_COEFFICIENTS_CMD::SAMPLER_STATE_8x8_CONVOLVE_COEFFICIENTS_CMD() |
| 278 |
{ |
| 279 |
DW0.Value = 0; |
| 280 |
|
| 281 |
DW1.Value = 0; |
| 282 |
|
| 283 |
DW2.Value = 0; |
| 284 |
|
| 285 |
DW3.Value = 0; |
| 286 |
|
| 287 |
DW4.Value = 0; |
| 288 |
|
| 289 |
DW5.Value = 0; |
| 290 |
|
| 291 |
DW6.Value = 0; |
| 292 |
|
| 293 |
DW7.Value = 0; |
| 294 |
|
| 295 |
} |
| 296 |
|
| 297 |
mhw_state_heap_g8_X::SAMPLER_STATE_8x8_CONVOLVE_CMD::SAMPLER_STATE_8x8_CONVOLVE_CMD() |
| 298 |
{ |
| 299 |
DW0.Value = 0; |
| 300 |
DW0.SizeOfTheCoefficient = SIZE_OF_THE_COEFFICIENT_8BIT; |
| 301 |
|
| 302 |
MOS_ZeroMemory(&Reserved32, sizeof(Reserved32)); |
| 303 |
MOS_ZeroMemory(&Reserved4608, sizeof(Reserved4608)); |
| 304 |
} |
| 305 |
|
| 306 |
mhw_state_heap_g8_X::SAMPLER_STATE_8x8_ERODE_DILATE_MINMAXFILTER_CMD::SAMPLER_STATE_8x8_ERODE_DILATE_MINMAXFILTER_CMD() |
| 307 |
{ |
| 308 |
DW0.Value = 0; |
| 309 |
|
| 310 |
DW1.Value = 0; |
| 311 |
|
| 312 |
DW2.Value = 0; |
| 313 |
|
| 314 |
DW3.Value = 0; |
| 315 |
|
| 316 |
DW4.Value = 0; |
| 317 |
|
| 318 |
DW5.Value = 0; |
| 319 |
|
| 320 |
DW6.Value = 0; |
| 321 |
|
| 322 |
DW7.Value = 0; |
| 323 |
|
| 324 |
} |
| 325 |
|
| 326 |
mhw_state_heap_g8_X::SAMPLER_INDIRECT_STATE_CMD::SAMPLER_INDIRECT_STATE_CMD() |
| 327 |
{ |
| 328 |
DW0.Value = 0; |
| 329 |
|
| 330 |
DW1.Value = 0; |
| 331 |
|
| 332 |
DW2.Value = 0; |
| 333 |
|
| 334 |
DW3.Value = 0; |
| 335 |
|
| 336 |
MOS_ZeroMemory(&Reserved128, sizeof(Reserved128)); |
| 337 |
} |
| 338 |
|