| 1 | /* |
| 2 | * Copyright (c) 2022-2025, 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 mos_user_setting.cpp |
| 24 | //! \brief This file defines the user settings of mos |
| 25 | //! \details Common OS debug across different platform |
| 26 | //! |
| 27 | |
| 28 | #include "mos_user_setting.h" |
| 29 | |
| 30 | MOS_STATUS MosUserSetting::InitMosUserSetting(MediaUserSettingSharedPtr userSettingPtr) |
| 31 | { |
| 32 | InitMosCommonUserSetting(userSettingPtr); |
| 33 | |
| 34 | InitMosUserSettingSpecific(userSettingPtr); |
| 35 | |
| 36 | #if MOS_MESSAGES_ENABLED |
| 37 | InitMosMessageUserSetting(userSettingPtr); |
| 38 | #endif |
| 39 | |
| 40 | #if (_DEBUG || _RELEASE_INTERNAL) |
| 41 | InitUserSettingForDebug(userSettingPtr); |
| 42 | #endif |
| 43 | return MOS_STATUS_SUCCESS; |
| 44 | } |
| 45 | |
| 46 | MOS_STATUS MosUserSetting::InitMosCommonUserSetting(MediaUserSettingSharedPtr userSettingPtr) |
| 47 | { |
| 48 | DeclareUserSettingKey( |
| 49 | userSettingPtr, |
| 50 | "ApoMosEnable", |
| 51 | MediaUserSetting::Group::Device, |
| 52 | 0, |
| 53 | true); |
| 54 | |
| 55 | DeclareUserSettingKey( |
| 56 | userSettingPtr, |
| 57 | "ApoDdiEnable", |
| 58 | MediaUserSetting::Group::Device, |
| 59 | 1, |
| 60 | true); |
| 61 | |
| 62 | DeclareUserSettingKey( |
| 63 | userSettingPtr, |
| 64 | __MEDIA_USER_FEATURE_VALUE_APOGEIOS_ENABLE, |
| 65 | MediaUserSetting::Group::Device, |
| 66 | uint32_t(0), |
| 67 | true); |
| 68 | |
| 69 | DeclareUserSettingKey( |
| 70 | userSettingPtr, |
| 71 | __MEDIA_USER_FEATURE_VALUE_RA_MODE_ENABLE, |
| 72 | MediaUserSetting::Group::Device, |
| 73 | uint32_t(0), |
| 74 | true); |
| 75 | |
| 76 | DeclareUserSettingKey( |
| 77 | userSettingPtr, |
| 78 | __MEDIA_USER_FEATURE_VALUE_PROTECT_MODE_ENABLE, |
| 79 | MediaUserSetting::Group::Device, |
| 80 | uint32_t(0), |
| 81 | true); |
| 82 | |
| 83 | DeclareUserSettingKey( |
| 84 | userSettingPtr, |
| 85 | "Enable Compressible Surface Creation", |
| 86 | MediaUserSetting::Group::Device, |
| 87 | 0, |
| 88 | true); |
| 89 | |
| 90 | DeclareUserSettingKey( |
| 91 | userSettingPtr, |
| 92 | __MEDIA_USER_FEATURE_VALUE_MEMNINJA_COUNTER, |
| 93 | MediaUserSetting::Group::Device, |
| 94 | 0, |
| 95 | true); |
| 96 | |
| 97 | DeclareUserSettingKey( //For debugging purpose. Enable Vebox In-Place decompression |
| 98 | userSettingPtr, |
| 99 | __VPHAL_ENABLE_VEBOX_MMC_DECOMPRESS, |
| 100 | MediaUserSetting::Group::Device, |
| 101 | 0, |
| 102 | true); |
| 103 | |
| 104 | DeclareUserSettingKey( //Enable memory compression |
| 105 | userSettingPtr, |
| 106 | __VPHAL_ENABLE_MMC, |
| 107 | MediaUserSetting::Group::Device, |
| 108 | false, |
| 109 | true); |
| 110 | |
| 111 | DeclareUserSettingKey( // VP Compression Enable |
| 112 | userSettingPtr, |
| 113 | __MEDIA_USER_FEATURE_VALUE_VP_MMC_IN_USE, |
| 114 | MediaUserSetting::Group::Device, |
| 115 | false, |
| 116 | true); |
| 117 | |
| 118 | DeclareUserSettingKey( |
| 119 | userSettingPtr, |
| 120 | "Enable Codec MMC", |
| 121 | MediaUserSetting::Group::Device, |
| 122 | false, |
| 123 | false); |
| 124 | |
| 125 | DeclareUserSettingKey( |
| 126 | userSettingPtr, |
| 127 | "Codec MMC In Use", |
| 128 | MediaUserSetting::Group::Device, |
| 129 | false, |
| 130 | true); |
| 131 | |
| 132 | DeclareUserSettingKey( |
| 133 | userSettingPtr, |
| 134 | "HEVC Encode", |
| 135 | MediaUserSetting::Group::Device, |
| 136 | int32_t(1), |
| 137 | false); |
| 138 | |
| 139 | DeclareUserSettingKey( |
| 140 | userSettingPtr, |
| 141 | "JPEG Encode", |
| 142 | MediaUserSetting::Group::Device, |
| 143 | int32_t(1), |
| 144 | false); |
| 145 | |
| 146 | DeclareUserSettingKey( |
| 147 | userSettingPtr, |
| 148 | "Encode MMC In Use", |
| 149 | MediaUserSetting::Group::Sequence, |
| 150 | int32_t(0), |
| 151 | true); |
| 152 | |
| 153 | DeclareUserSettingKey( |
| 154 | userSettingPtr, |
| 155 | "Enable Encode MMC", |
| 156 | MediaUserSetting::Group::Sequence, |
| 157 | int32_t(0), |
| 158 | false); |
| 159 | |
| 160 | DeclareUserSettingKey( |
| 161 | userSettingPtr, |
| 162 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_ENABLE, |
| 163 | MediaUserSetting::Group::Device, |
| 164 | 2, |
| 165 | false); |
| 166 | |
| 167 | DeclareUserSettingKey( |
| 168 | userSettingPtr, |
| 169 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_ENABLE, |
| 170 | MediaUserSetting::Group::Device, |
| 171 | 2, |
| 172 | false); |
| 173 | |
| 174 | DeclareUserSettingKey( |
| 175 | userSettingPtr, |
| 176 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_ENABLE, |
| 177 | MediaUserSetting::Group::Device, |
| 178 | 2, |
| 179 | false); |
| 180 | |
| 181 | DeclareUserSettingKey( |
| 182 | userSettingPtr, |
| 183 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_TIMEOUT, |
| 184 | MediaUserSetting::Group::Device, |
| 185 | 12, |
| 186 | false); |
| 187 | |
| 188 | DeclareUserSettingKey( |
| 189 | userSettingPtr, |
| 190 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_TIMEOUT, |
| 191 | MediaUserSetting::Group::Device, |
| 192 | 12, |
| 193 | false); |
| 194 | |
| 195 | DeclareUserSettingKey( |
| 196 | userSettingPtr, |
| 197 | __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_TIMEOUT, |
| 198 | MediaUserSetting::Group::Device, |
| 199 | 12, |
| 200 | false); |
| 201 | |
| 202 | DeclareUserSettingKey( //TRUE for Enabling Vebox Scalability. (Default FALSE: disabled") |
| 203 | userSettingPtr, |
| 204 | __MEDIA_USER_FEATURE_VALUE_ENABLE_VEBOX_SCALABILITY_MODE, |
| 205 | MediaUserSetting::Group::Device, |
| 206 | 0, |
| 207 | true); //"TRUE for Enabling Vebox Scalability. (Default FALSE: disabled)" |
| 208 | |
| 209 | DeclareUserSettingKey( |
| 210 | userSettingPtr, |
| 211 | __MEDIA_USER_FEATURE_VALUE_ENABLE_HCP_SCALABILITY_DECODE, |
| 212 | MediaUserSetting::Group::Device, |
| 213 | 1, |
| 214 | true); //"Enable HCP Scalability decode mode. (Default 1: Scalable Decode Mode " |
| 215 | |
| 216 | DeclareUserSettingKey( |
| 217 | userSettingPtr, |
| 218 | __MEDIA_USER_FEATURE_VALUE_PERF_UTILITY_TOOL_ENABLE, |
| 219 | MediaUserSetting::Group::Device, |
| 220 | 0, |
| 221 | true); //"Enable Perf Utility Tool. " |
| 222 | |
| 223 | DeclareUserSettingKey( |
| 224 | userSettingPtr, |
| 225 | __MEDIA_USER_FEATURE_VALUE_PERF_OUTPUT_DIRECTORY, |
| 226 | MediaUserSetting::Group::Device, |
| 227 | "", |
| 228 | true); //" Perf Utility Tool Customize Output Directory. " |
| 229 | |
| 230 | DeclareUserSettingKey( |
| 231 | userSettingPtr, |
| 232 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_ENABLE, |
| 233 | MediaUserSetting::Group::Device, |
| 234 | int32_t(0), |
| 235 | true, |
| 236 | true, |
| 237 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Enable Control Flag." |
| 238 | |
| 239 | DeclareUserSettingKey( |
| 240 | userSettingPtr, |
| 241 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_ENABLE_MUL_PROC, |
| 242 | MediaUserSetting::Group::Device, |
| 243 | int32_t(0), |
| 244 | true, |
| 245 | true, |
| 246 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Multi Process Support." |
| 247 | |
| 248 | DeclareUserSettingKey( |
| 249 | userSettingPtr, |
| 250 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_ENABLE_MER_HEADER, |
| 251 | MediaUserSetting::Group::Device, |
| 252 | int32_t(0), |
| 253 | true, |
| 254 | true, |
| 255 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Merge by Header Support." |
| 256 | |
| 257 | DeclareUserSettingKey( |
| 258 | userSettingPtr, |
| 259 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_PARALLEL_EXEC, |
| 260 | MediaUserSetting::Group::Device, |
| 261 | false, |
| 262 | true, |
| 263 | true, |
| 264 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Parallel Execution Support." |
| 265 | |
| 266 | DeclareUserSettingKey( |
| 267 | userSettingPtr, |
| 268 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_OUTPUT_FILE_NAME, |
| 269 | MediaUserSetting::Group::Device, |
| 270 | "Perf_DATA_00_00.bin", |
| 271 | true, |
| 272 | true, |
| 273 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Output File Name." |
| 274 | |
| 275 | DeclareUserSettingKey( |
| 276 | userSettingPtr, |
| 277 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_MUL_PROC_SINGLE_BIN, |
| 278 | MediaUserSetting::Group::Device, |
| 279 | int32_t(0), |
| 280 | true, |
| 281 | true, |
| 282 | USER_SETTING_CONFIG_PERF_PATH); //"Perf Profiler Multi Process Single Binary Flag." |
| 283 | |
| 284 | DeclareUserSettingKey( |
| 285 | userSettingPtr, |
| 286 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_BUFFER_SIZE_KEY, |
| 287 | MediaUserSetting::Group::Device, |
| 288 | uint32_t(10000000), |
| 289 | true, |
| 290 | true, |
| 291 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 292 | |
| 293 | DeclareUserSettingKey( |
| 294 | userSettingPtr, |
| 295 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_1, |
| 296 | MediaUserSetting::Group::Device, |
| 297 | uint32_t(0), |
| 298 | true, |
| 299 | true, |
| 300 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 301 | |
| 302 | DeclareUserSettingKey( |
| 303 | userSettingPtr, |
| 304 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_2, |
| 305 | MediaUserSetting::Group::Device, |
| 306 | uint32_t(0), |
| 307 | true, |
| 308 | true, |
| 309 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 310 | |
| 311 | DeclareUserSettingKey( |
| 312 | userSettingPtr, |
| 313 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_3, |
| 314 | MediaUserSetting::Group::Device, |
| 315 | uint32_t(0), |
| 316 | true, |
| 317 | true, |
| 318 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 319 | |
| 320 | DeclareUserSettingKey( |
| 321 | userSettingPtr, |
| 322 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_4, |
| 323 | MediaUserSetting::Group::Device, |
| 324 | uint32_t(0), |
| 325 | true, |
| 326 | true, |
| 327 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 328 | |
| 329 | DeclareUserSettingKey( |
| 330 | userSettingPtr, |
| 331 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_5, |
| 332 | MediaUserSetting::Group::Device, |
| 333 | uint32_t(0), |
| 334 | true, |
| 335 | true, |
| 336 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 337 | |
| 338 | DeclareUserSettingKey( |
| 339 | userSettingPtr, |
| 340 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_6, |
| 341 | MediaUserSetting::Group::Device, |
| 342 | uint32_t(0), |
| 343 | true, |
| 344 | true, |
| 345 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 346 | |
| 347 | DeclareUserSettingKey( |
| 348 | userSettingPtr, |
| 349 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_7, |
| 350 | MediaUserSetting::Group::Device, |
| 351 | uint32_t(0), |
| 352 | true, |
| 353 | true, |
| 354 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 355 | |
| 356 | DeclareUserSettingKey( |
| 357 | userSettingPtr, |
| 358 | __MEDIA_USER_FEATURE_VALUE_PERF_PROFILER_REGISTER_KEY_8, |
| 359 | MediaUserSetting::Group::Device, |
| 360 | uint32_t(0), |
| 361 | true, |
| 362 | true, |
| 363 | USER_SETTING_CONFIG_PERF_PATH); //"Performance Profiler Memory Information Register." |
| 364 | |
| 365 | #if MOS_COMMAND_BUFFER_DUMP_SUPPORTED |
| 366 | DeclareUserSettingKey( |
| 367 | userSettingPtr, |
| 368 | __MEDIA_USER_FEATURE_VALUE_DUMP_COMMAND_BUFFER_ENABLE, |
| 369 | MediaUserSetting::Group::Device, |
| 370 | 0, |
| 371 | true); // "If enabled, all of the command buffers submitted through MOS will be dumped (0: disabled, 1: to a file, 2: as a normal message)." |
| 372 | #endif |
| 373 | |
| 374 | #if MOS_COMMAND_RESINFO_DUMP_SUPPORTED |
| 375 | DeclareUserSettingKey( |
| 376 | userSettingPtr, |
| 377 | __MEDIA_USER_FEATURE_VALUE_DUMP_COMMAND_INFO_ENABLE, |
| 378 | MediaUserSetting::Group::Device, |
| 379 | 0, |
| 380 | true); //"If enabled, gpu command info will be dumped (0: disabled, 1: to a file)." |
| 381 | |
| 382 | DeclareUserSettingKey( |
| 383 | userSettingPtr, |
| 384 | __MEDIA_USER_FEATURE_VALUE_DUMP_COMMAND_INFO_PATH, |
| 385 | MediaUserSetting::Group::Device, |
| 386 | "", |
| 387 | true); //"Path where command info will be dumped, for example: ./" |
| 388 | #endif // MOS_COMMAND_RESINFO_DUMP_SUPPORTED |
| 389 | |
| 390 | DeclareUserSettingKey( |
| 391 | userSettingPtr, |
| 392 | __MEDIA_USER_FEATURE_VALUE_ENABLE_UMD_OCA, |
| 393 | MediaUserSetting::Group::Device, |
| 394 | 1, |
| 395 | true); //"Enable UMD_OCA in media driver." |
| 396 | |
| 397 | DeclareUserSettingKey( |
| 398 | userSettingPtr, |
| 399 | __MEDIA_USER_FEATURE_VALUE_OCA_STATUS, |
| 400 | MediaUserSetting::Group::Device, |
| 401 | 0, |
| 402 | true); //Reports out the first OCA error. |
| 403 | |
| 404 | DeclareUserSettingKey( |
| 405 | userSettingPtr, |
| 406 | __MEDIA_USER_FEATURE_VALUE_OCA_ERROR_HINT, |
| 407 | MediaUserSetting::Group::Device, |
| 408 | 0, |
| 409 | true); //Reports out the line number of first OCA error. |
| 410 | |
| 411 | DeclareUserSettingKey( |
| 412 | userSettingPtr, |
| 413 | __MEDIA_USER_FEATURE_VALUE_COUNT_FOR_OCA_BUFFER_LEAKED, |
| 414 | MediaUserSetting::Group::Device, |
| 415 | 0, |
| 416 | true); //Reports out the line number of first OCA error. |
| 417 | |
| 418 | DeclareUserSettingKey( |
| 419 | userSettingPtr, |
| 420 | __MEDIA_USER_FEATURE_VALUE_COUNT_FOR_OCA_1ST_LEVEL_BB_END_MISSED, |
| 421 | MediaUserSetting::Group::Device, |
| 422 | 0, |
| 423 | true); //Reports out the count for OCA buffer which missed to call On1stLevelBBEnd. |
| 424 | |
| 425 | DeclareUserSettingKey( |
| 426 | userSettingPtr, |
| 427 | __MEDIA_USER_FEATURE_VALUE_COUNT_FOR_ADDITIONAL_OCA_BUFFER_ALLOCATED, |
| 428 | MediaUserSetting::Group::Device, |
| 429 | 0, |
| 430 | true); //Reports out the count for additional OCA buffer allocated. |
| 431 | |
| 432 | DeclareUserSettingKey( |
| 433 | userSettingPtr, |
| 434 | __MEDIA_USER_FEATURE_VALUE_IS_INDIRECT_STATE_HEAP_INVALID, |
| 435 | MediaUserSetting::Group::Device, |
| 436 | 0, |
| 437 | true); //Reports out whether indirect state heap invalid |
| 438 | |
| 439 | DeclareUserSettingKey( |
| 440 | userSettingPtr, |
| 441 | __MEDIA_USER_FEATURE_VALUE_MEDIA_TEXTURE_POOLING_ENABLE, |
| 442 | MediaUserSetting::Group::Device, |
| 443 | 1, |
| 444 | true); //"Enable texture pooling in media driver." |
| 445 | |
| 446 | DeclareUserSettingKey( |
| 447 | userSettingPtr, |
| 448 | __MEDIA_USER_FEATURE_VALUE_MEDIA_NATIVE_FENCE_MODE, |
| 449 | MediaUserSetting::Group::Device, |
| 450 | 1, |
| 451 | true); |
| 452 | |
| 453 | return MOS_STATUS_SUCCESS; |
| 454 | } |
| 455 | |
| 456 | #if MOS_MESSAGES_ENABLED |
| 457 | MOS_STATUS MosUserSetting::InitMosMessageUserSetting(MediaUserSettingSharedPtr userSettingPtr) |
| 458 | { |
| 459 | DeclareUserSettingKey( |
| 460 | userSettingPtr, |
| 461 | __MOS_USER_FEATURE_KEY_DISABLE_ASSERT, |
| 462 | MediaUserSetting::Group::Device, |
| 463 | 0, |
| 464 | true); |
| 465 | |
| 466 | DeclareUserSettingKey( |
| 467 | userSettingPtr, |
| 468 | __MOS_USER_FEATURE_KEY_MESSAGE_HLT_ENABLED, |
| 469 | MediaUserSetting::Group::Device, |
| 470 | 0, |
| 471 | true); |
| 472 | |
| 473 | DeclareUserSettingKey( |
| 474 | userSettingPtr, |
| 475 | __MOS_USER_FEATURE_KEY_FLUSH_LOG_FILE_BEFORE_SUBMISSION, |
| 476 | MediaUserSetting::Group::Device, |
| 477 | 0, |
| 478 | true); |
| 479 | |
| 480 | DeclareUserSettingKey( |
| 481 | userSettingPtr, |
| 482 | __MOS_USER_FEATURE_KEY_ENABLE_MEMORY_FOOT_PRINT, |
| 483 | MediaUserSetting::Group::Device, |
| 484 | 0, |
| 485 | true); |
| 486 | |
| 487 | DeclareUserSettingKey( |
| 488 | userSettingPtr, |
| 489 | __MOS_USER_FEATURE_KEY_MESSAGE_HLT_OUTPUT_DIRECTORY, |
| 490 | MediaUserSetting::Group::Device, |
| 491 | "", |
| 492 | true); |
| 493 | |
| 494 | DeclareUserSettingKey( |
| 495 | userSettingPtr, |
| 496 | __MOS_USER_FEATURE_KEY_MESSAGE_PRINT_ENABLED, |
| 497 | MediaUserSetting::Group::Device, |
| 498 | 1, |
| 499 | true); |
| 500 | |
| 501 | DeclareUserSettingKey( |
| 502 | userSettingPtr, |
| 503 | __MOS_USER_FEATURE_KEY_MESSAGE_OS_TAG, |
| 504 | MediaUserSetting::Group::Device, |
| 505 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 506 | true); |
| 507 | |
| 508 | DeclareUserSettingKey( |
| 509 | userSettingPtr, |
| 510 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_OS, |
| 511 | MediaUserSetting::Group::Device, |
| 512 | 0, |
| 513 | true); |
| 514 | |
| 515 | DeclareUserSettingKey( |
| 516 | userSettingPtr, |
| 517 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_OS_TAG, |
| 518 | MediaUserSetting::Group::Device, |
| 519 | uint64_t(0), |
| 520 | true); |
| 521 | |
| 522 | DeclareUserSettingKey( |
| 523 | userSettingPtr, |
| 524 | __MOS_USER_FEATURE_KEY_MESSAGE_MHW_TAG, |
| 525 | MediaUserSetting::Group::Device, |
| 526 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 527 | true); |
| 528 | |
| 529 | DeclareUserSettingKey( |
| 530 | userSettingPtr, |
| 531 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_MHW, |
| 532 | MediaUserSetting::Group::Device, |
| 533 | 0, |
| 534 | true); |
| 535 | |
| 536 | DeclareUserSettingKey( |
| 537 | userSettingPtr, |
| 538 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_MHW_TAG, |
| 539 | MediaUserSetting::Group::Device, |
| 540 | uint64_t(0), |
| 541 | true); |
| 542 | |
| 543 | DeclareUserSettingKey( |
| 544 | userSettingPtr, |
| 545 | __MOS_USER_FEATURE_KEY_MESSAGE_CODEC_TAG, |
| 546 | MediaUserSetting::Group::Device, |
| 547 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 548 | true); |
| 549 | |
| 550 | DeclareUserSettingKey( |
| 551 | userSettingPtr, |
| 552 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_CODEC, |
| 553 | MediaUserSetting::Group::Device, |
| 554 | 0, |
| 555 | true); |
| 556 | |
| 557 | DeclareUserSettingKey( |
| 558 | userSettingPtr, |
| 559 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_CODEC_TAG, |
| 560 | MediaUserSetting::Group::Device, |
| 561 | uint64_t(0), |
| 562 | true); |
| 563 | |
| 564 | DeclareUserSettingKey( |
| 565 | userSettingPtr, |
| 566 | __MOS_USER_FEATURE_KEY_MESSAGE_VP_TAG, |
| 567 | MediaUserSetting::Group::Device, |
| 568 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 569 | true); |
| 570 | |
| 571 | DeclareUserSettingKey( |
| 572 | userSettingPtr, |
| 573 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_VP, |
| 574 | MediaUserSetting::Group::Device, |
| 575 | 0, |
| 576 | true); |
| 577 | |
| 578 | DeclareUserSettingKey( |
| 579 | userSettingPtr, |
| 580 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_VP_TAG, |
| 581 | MediaUserSetting::Group::Device, |
| 582 | uint64_t(0), |
| 583 | true); |
| 584 | |
| 585 | DeclareUserSettingKey( |
| 586 | userSettingPtr, |
| 587 | __MOS_USER_FEATURE_KEY_MESSAGE_CP_TAG, |
| 588 | MediaUserSetting::Group::Device, |
| 589 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 590 | true); |
| 591 | |
| 592 | DeclareUserSettingKey( |
| 593 | userSettingPtr, |
| 594 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_CP, |
| 595 | MediaUserSetting::Group::Device, |
| 596 | 0, |
| 597 | true); |
| 598 | |
| 599 | DeclareUserSettingKey( |
| 600 | userSettingPtr, |
| 601 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_CP_TAG, |
| 602 | MediaUserSetting::Group::Device, |
| 603 | uint64_t(0), |
| 604 | true); |
| 605 | |
| 606 | DeclareUserSettingKey( |
| 607 | userSettingPtr, |
| 608 | __MOS_USER_FEATURE_KEY_MESSAGE_DDI_TAG, |
| 609 | MediaUserSetting::Group::Device, |
| 610 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 611 | true); |
| 612 | |
| 613 | DeclareUserSettingKey( |
| 614 | userSettingPtr, |
| 615 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_DDI, |
| 616 | MediaUserSetting::Group::Device, |
| 617 | 0, |
| 618 | true); |
| 619 | |
| 620 | DeclareUserSettingKey( |
| 621 | userSettingPtr, |
| 622 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_DDI_TAG, |
| 623 | MediaUserSetting::Group::Device, |
| 624 | uint64_t(0), |
| 625 | true); |
| 626 | |
| 627 | DeclareUserSettingKey( |
| 628 | userSettingPtr, |
| 629 | __MOS_USER_FEATURE_KEY_MESSAGE_CM_TAG, |
| 630 | MediaUserSetting::Group::Device, |
| 631 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 632 | true); |
| 633 | |
| 634 | DeclareUserSettingKey( |
| 635 | userSettingPtr, |
| 636 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_CM, |
| 637 | MediaUserSetting::Group::Device, |
| 638 | 0, |
| 639 | true); |
| 640 | |
| 641 | DeclareUserSettingKey( |
| 642 | userSettingPtr, |
| 643 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_CM_TAG, |
| 644 | MediaUserSetting::Group::Device, |
| 645 | uint64_t(0), |
| 646 | true); |
| 647 | |
| 648 | DeclareUserSettingKey( |
| 649 | userSettingPtr, |
| 650 | __MOS_USER_FEATURE_KEY_MESSAGE_SCALABILITY_TAG, |
| 651 | MediaUserSetting::Group::Device, |
| 652 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 653 | true); |
| 654 | |
| 655 | DeclareUserSettingKey( |
| 656 | userSettingPtr, |
| 657 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_SCALABILITY, |
| 658 | MediaUserSetting::Group::Device, |
| 659 | 0, |
| 660 | true); |
| 661 | |
| 662 | DeclareUserSettingKey( |
| 663 | userSettingPtr, |
| 664 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_SCALABILITY_TAG, |
| 665 | MediaUserSetting::Group::Device, |
| 666 | uint64_t(0), |
| 667 | true); |
| 668 | |
| 669 | DeclareUserSettingKey( |
| 670 | userSettingPtr, |
| 671 | __MOS_USER_FEATURE_KEY_MESSAGE_MMC_TAG, |
| 672 | MediaUserSetting::Group::Device, |
| 673 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 674 | true); |
| 675 | |
| 676 | DeclareUserSettingKey( |
| 677 | userSettingPtr, |
| 678 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_MMC, |
| 679 | MediaUserSetting::Group::Device, |
| 680 | 0, |
| 681 | true); |
| 682 | |
| 683 | DeclareUserSettingKey( |
| 684 | userSettingPtr, |
| 685 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_MMC_TAG, |
| 686 | MediaUserSetting::Group::Device, |
| 687 | uint64_t(0), |
| 688 | true); |
| 689 | |
| 690 | DeclareUserSettingKey( |
| 691 | userSettingPtr, |
| 692 | __MOS_USER_FEATURE_KEY_MESSAGE_MCPY_TAG, |
| 693 | MediaUserSetting::Group::Device, |
| 694 | __MOS_USER_FEATURE_KEY_MESSAGE_DEFAULT_VALUE, |
| 695 | true); |
| 696 | |
| 697 | DeclareUserSettingKey( |
| 698 | userSettingPtr, |
| 699 | __MOS_USER_FEATURE_KEY_BY_SUB_COMPONENT_MCPY, |
| 700 | MediaUserSetting::Group::Device, |
| 701 | 0, |
| 702 | true); |
| 703 | |
| 704 | DeclareUserSettingKey( |
| 705 | userSettingPtr, |
| 706 | __MOS_USER_FEATURE_KEY_SUB_COMPONENT_MCPY_TAG, |
| 707 | MediaUserSetting::Group::Device, |
| 708 | uint64_t(0), |
| 709 | true); |
| 710 | |
| 711 | return MOS_STATUS_SUCCESS; |
| 712 | } |
| 713 | #endif |
| 714 | |
| 715 | #if (_DEBUG || _RELEASE_INTERNAL) |
| 716 | MOS_STATUS MosUserSetting::InitUserSettingForDebug(MediaUserSettingSharedPtr userSettingPtr) |
| 717 | { |
| 718 | DeclareUserSettingKeyForDebug( |
| 719 | userSettingPtr, |
| 720 | "Disable RowStore Cache", |
| 721 | MediaUserSetting::Group::Device, |
| 722 | 0, |
| 723 | true); |
| 724 | DeclareUserSettingKeyForDebug( |
| 725 | userSettingPtr, |
| 726 | __MEDIA_USER_FEATURE_VALUE_IS_CODEC_ROW_STORE_CACHE_ENABLED, |
| 727 | MediaUserSetting::Group::Device, |
| 728 | 0, |
| 729 | true); |
| 730 | DeclareUserSettingKeyForDebug( |
| 731 | userSettingPtr, |
| 732 | "DisableVp9DfRowStoreCache", |
| 733 | MediaUserSetting::Group::Device, |
| 734 | 0, |
| 735 | true); |
| 736 | DeclareUserSettingKeyForDebug( |
| 737 | userSettingPtr, |
| 738 | "DisableAv1DfluRowstoreCache", |
| 739 | MediaUserSetting::Group::Device, |
| 740 | 0, |
| 741 | true); |
| 742 | DeclareUserSettingKeyForDebug( |
| 743 | userSettingPtr, |
| 744 | "DisableAv1DflvRowstoreCache", |
| 745 | MediaUserSetting::Group::Device, |
| 746 | 0, |
| 747 | true); |
| 748 | DeclareUserSettingKeyForDebug( |
| 749 | userSettingPtr, |
| 750 | "DisableAv1CdefRowstoreCache", |
| 751 | MediaUserSetting::Group::Device, |
| 752 | 0, |
| 753 | true); |
| 754 | DeclareUserSettingKeyForDebug( |
| 755 | userSettingPtr, |
| 756 | "DisableIntraRowStoreCache", |
| 757 | MediaUserSetting::Group::Device, |
| 758 | 0, |
| 759 | true); |
| 760 | DeclareUserSettingKeyForDebug( |
| 761 | userSettingPtr, |
| 762 | "DisableDeblockingFilterRowStoreCache", |
| 763 | MediaUserSetting::Group::Device, |
| 764 | 0, |
| 765 | true); |
| 766 | DeclareUserSettingKeyForDebug( |
| 767 | userSettingPtr, |
| 768 | "DisableBsdMpcRowStoreCache", |
| 769 | MediaUserSetting::Group::Device, |
| 770 | 0, |
| 771 | true); |
| 772 | DeclareUserSettingKeyForDebug( |
| 773 | userSettingPtr, |
| 774 | "DisableMprRowStoreCache", |
| 775 | MediaUserSetting::Group::Device, |
| 776 | 0, |
| 777 | true); |
| 778 | DeclareUserSettingKeyForDebug( |
| 779 | userSettingPtr, |
| 780 | "DisableVDEncRowStoreCache", |
| 781 | MediaUserSetting::Group::Device, |
| 782 | 0, |
| 783 | true); |
| 784 | DeclareUserSettingKeyForDebug( |
| 785 | userSettingPtr, |
| 786 | "DisableHevcDatRowStoreCache", |
| 787 | MediaUserSetting::Group::Device, |
| 788 | 0, |
| 789 | true); |
| 790 | DeclareUserSettingKeyForDebug( |
| 791 | userSettingPtr, |
| 792 | "DisableHevcDfRowStoreCache", |
| 793 | MediaUserSetting::Group::Device, |
| 794 | 0, |
| 795 | true); |
| 796 | DeclareUserSettingKeyForDebug( |
| 797 | userSettingPtr, |
| 798 | "DisableHevcSaoRowStoreCache", |
| 799 | MediaUserSetting::Group::Device, |
| 800 | 0, |
| 801 | true); |
| 802 | DeclareUserSettingKeyForDebug( |
| 803 | userSettingPtr, |
| 804 | "DisableVp9HvdRowStoreCache", |
| 805 | MediaUserSetting::Group::Device, |
| 806 | 0, |
| 807 | true); |
| 808 | DeclareUserSettingKeyForDebug( |
| 809 | userSettingPtr, |
| 810 | "DisableVp9DatRowStoreCache", |
| 811 | MediaUserSetting::Group::Device, |
| 812 | 0, |
| 813 | true); |
| 814 | DeclareUserSettingKeyForDebug( |
| 815 | userSettingPtr, |
| 816 | "DisableAv1BtdlRowstoreCache", |
| 817 | MediaUserSetting::Group::Device, |
| 818 | 0, |
| 819 | true); |
| 820 | DeclareUserSettingKeyForDebug( |
| 821 | userSettingPtr, |
| 822 | "DisableAv1SmvlRowstoreCache", |
| 823 | MediaUserSetting::Group::Device, |
| 824 | 0, |
| 825 | true); |
| 826 | DeclareUserSettingKeyForDebug( |
| 827 | userSettingPtr, |
| 828 | "DisableAv1IpdlRowstoreCache", |
| 829 | MediaUserSetting::Group::Device, |
| 830 | 0, |
| 831 | true); |
| 832 | DeclareUserSettingKeyForDebug( |
| 833 | userSettingPtr, |
| 834 | "DisableAv1DflyRowstoreCache", |
| 835 | MediaUserSetting::Group::Device, |
| 836 | 0, |
| 837 | true); |
| 838 | DeclareUserSettingKeyForDebug( |
| 839 | userSettingPtr, |
| 840 | "Encode L3CNTLREG Override", |
| 841 | MediaUserSetting::Group::Device, |
| 842 | 0, |
| 843 | false); |
| 844 | DeclareUserSettingKeyForDebug( |
| 845 | userSettingPtr, |
| 846 | "Encode L3CNTLREG2 Override", |
| 847 | MediaUserSetting::Group::Device, |
| 848 | 0, |
| 849 | false); |
| 850 | DeclareUserSettingKeyForDebug( |
| 851 | userSettingPtr, |
| 852 | "Encode L3CNTLREG3 Override", |
| 853 | MediaUserSetting::Group::Device, |
| 854 | 0, |
| 855 | false); |
| 856 | DeclareUserSettingKeyForDebug( |
| 857 | userSettingPtr, |
| 858 | "Encode L3SQCREG1 Override", |
| 859 | MediaUserSetting::Group::Device, |
| 860 | 0, |
| 861 | false); |
| 862 | DeclareUserSettingKeyForDebug( |
| 863 | userSettingPtr, |
| 864 | "Encode L3SQCREG4 Override", |
| 865 | MediaUserSetting::Group::Device, |
| 866 | 0, |
| 867 | false); |
| 868 | DeclareUserSettingKeyForDebug( |
| 869 | userSettingPtr, |
| 870 | "L3LRA1RegOverride", |
| 871 | MediaUserSetting::Group::Device, |
| 872 | 0, |
| 873 | false); |
| 874 | |
| 875 | DeclareUserSettingKeyForDebug( |
| 876 | userSettingPtr, |
| 877 | __COMMON_DBG_SURF_DUMPER_RESOURCE_LOCK, |
| 878 | MediaUserSetting::Group::Device, |
| 879 | 1, |
| 880 | true); |
| 881 | |
| 882 | DeclareUserSettingKeyForDebug( |
| 883 | userSettingPtr, |
| 884 | __COMMON_DBG_SURF_DUMP_OUTFILE_KEY_NAME, |
| 885 | MediaUserSetting::Group::Device, |
| 886 | "", |
| 887 | true); |
| 888 | |
| 889 | DeclareUserSettingKeyForDebug( |
| 890 | userSettingPtr, |
| 891 | __COMMON_DBG_DUMP_OUTPUT_DIRECTORY, |
| 892 | MediaUserSetting::Group::Device, |
| 893 | "", |
| 894 | true); |
| 895 | |
| 896 | DeclareUserSettingKeyForDebug( // MCPY Surface_in Dump Location |
| 897 | userSettingPtr, |
| 898 | __COMMON_DBG_SURF_DUMP_LOCATION_KEY_NAME_IN, |
| 899 | MediaUserSetting::Group::Device, |
| 900 | "", |
| 901 | true); |
| 902 | |
| 903 | DeclareUserSettingKeyForDebug( // MCPY Surface_out Dump Location |
| 904 | userSettingPtr, |
| 905 | __COMMON_DBG_SURF_DUMP_LOCATION_KEY_NAME_OUT, |
| 906 | MediaUserSetting::Group::Device, |
| 907 | "", |
| 908 | true); |
| 909 | |
| 910 | DeclareUserSettingKeyForDebug( |
| 911 | userSettingPtr, |
| 912 | __MEDIA_USER_FEATURE_VALUE_MEMORY_NINJA_BEGIN_COUNTER, |
| 913 | MediaUserSetting::Group::Device, |
| 914 | 0, |
| 915 | true); |
| 916 | |
| 917 | DeclareUserSettingKeyForDebug( |
| 918 | userSettingPtr, |
| 919 | __MEDIA_USER_FEATURE_VALUE_MEMORY_NINJA_END_COUNTER, |
| 920 | MediaUserSetting::Group::Device, |
| 921 | 0, |
| 922 | true); |
| 923 | |
| 924 | DeclareUserSettingKeyForDebug( |
| 925 | userSettingPtr, |
| 926 | __MEDIA_USER_FEATURE_VALUE_SIM_IN_USE, |
| 927 | MediaUserSetting::Group::Device, |
| 928 | int32_t(0), |
| 929 | true); |
| 930 | |
| 931 | DeclareUserSettingKeyForDebug( |
| 932 | userSettingPtr, |
| 933 | __MEDIA_USER_FEATURE_VALUE_MEDIA_RESET_ENABLE, |
| 934 | MediaUserSetting::Group::Device, |
| 935 | 1, |
| 936 | true); //"If enabled, media reset will be enabled." |
| 937 | |
| 938 | DeclareUserSettingKeyForDebug( |
| 939 | userSettingPtr, |
| 940 | __MEDIA_USER_FEATURE_VALUE_FORCE_MEDIA_COMPRESSED_WRITE, |
| 941 | MediaUserSetting::Group::Device, |
| 942 | 0, |
| 943 | true); //"If enabled, then to disable Unifined CMF." |
| 944 | |
| 945 | DeclareUserSettingKeyForDebug( |
| 946 | userSettingPtr, |
| 947 | __MEDIA_USER_FEATURE_VALUE_FORCE_RESET_THRESHOLD, |
| 948 | MediaUserSetting::Group::Device, |
| 949 | 0, |
| 950 | true); //"Force set media reset threshold. 1: enabled, 0: not used (default)." |
| 951 | |
| 952 | DeclareUserSettingKeyForDebug( |
| 953 | userSettingPtr, |
| 954 | __MEDIA_USER_FEATURE_VALUE_MEDIA_PREEMPTION_ENABLE, |
| 955 | MediaUserSetting::Group::Device, |
| 956 | true, |
| 957 | true); |
| 958 | |
| 959 | DeclareUserSettingKeyForDebug( |
| 960 | userSettingPtr, |
| 961 | __MEDIA_USER_FEATURE_VALUE_MEDIA_RESET_TH, |
| 962 | MediaUserSetting::Group::Device, |
| 963 | uint32_t(0), |
| 964 | true); |
| 965 | |
| 966 | DeclareUserSettingKeyForDebug( |
| 967 | userSettingPtr, |
| 968 | __MEDIA_USER_FEATURE_VALUE_MEDIA_DEBUG_CFG_GENERATION, |
| 969 | MediaUserSetting::Group::Device, |
| 970 | false, |
| 971 | true); |
| 972 | |
| 973 | DeclareUserSettingKeyForDebug( |
| 974 | userSettingPtr, |
| 975 | __MEDIA_USER_FEATURE_MCPY_MODE, |
| 976 | MediaUserSetting::Group::Device, |
| 977 | "", |
| 978 | true); |
| 979 | |
| 980 | DeclareUserSettingKeyForDebug( |
| 981 | userSettingPtr, |
| 982 | __MEDIA_USER_FEATURE_ENABLE_RENDER_ENGINE_MMC, |
| 983 | MediaUserSetting::Group::Device, |
| 984 | false, |
| 985 | true); |
| 986 | |
| 987 | DeclareUserSettingKeyForDebug( |
| 988 | userSettingPtr, |
| 989 | __MEDIA_USER_FEATURE_VALUE_VEBOX_SPLIT_RATIO, |
| 990 | MediaUserSetting::Group::Device, |
| 991 | uint32_t(50), |
| 992 | true); |
| 993 | |
| 994 | DeclareUserSettingKeyForDebug( |
| 995 | userSettingPtr, |
| 996 | __MEDIA_USER_FEATURE_VALUE_VDI_MODE, |
| 997 | MediaUserSetting::Group::Device, |
| 998 | true, |
| 999 | true); |
| 1000 | |
| 1001 | DeclareUserSettingKeyForDebug( |
| 1002 | userSettingPtr, |
| 1003 | __MEDIA_USER_FEATURE_VALUE_MEDIA_WALKER_MODE, |
| 1004 | MediaUserSetting::Group::Device, |
| 1005 | int32_t(-1), |
| 1006 | true); |
| 1007 | |
| 1008 | DeclareUserSettingKeyForDebug( |
| 1009 | userSettingPtr, |
| 1010 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_PLATFORM, |
| 1011 | MediaUserSetting::Group::Device, |
| 1012 | "", |
| 1013 | true); |
| 1014 | |
| 1015 | DeclareUserSettingKeyForDebug( |
| 1016 | userSettingPtr, |
| 1017 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_STEPPING, |
| 1018 | MediaUserSetting::Group::Device, |
| 1019 | "", |
| 1020 | true); |
| 1021 | |
| 1022 | DeclareUserSettingKeyForDebug( |
| 1023 | userSettingPtr, |
| 1024 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_ENABLE_MEM_TRACE, |
| 1025 | MediaUserSetting::Group::Device, |
| 1026 | false, |
| 1027 | true); |
| 1028 | |
| 1029 | DeclareUserSettingKeyForDebug( |
| 1030 | userSettingPtr, |
| 1031 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_ENABLE_LOCAL_MEM, |
| 1032 | MediaUserSetting::Group::Device, |
| 1033 | false, |
| 1034 | true); |
| 1035 | |
| 1036 | DeclareUserSettingKeyForDebug( |
| 1037 | userSettingPtr, |
| 1038 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_AUBLOAD_DIRECTORY, |
| 1039 | MediaUserSetting::Group::Device, |
| 1040 | "", |
| 1041 | true); |
| 1042 | |
| 1043 | DeclareUserSettingKeyForDebug( |
| 1044 | userSettingPtr, |
| 1045 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_OUTPUT_DIRECTORY, |
| 1046 | MediaUserSetting::Group::Device, |
| 1047 | "", |
| 1048 | true); |
| 1049 | |
| 1050 | DeclareUserSettingKeyForDebug( |
| 1051 | userSettingPtr, |
| 1052 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_GT_SKU, |
| 1053 | MediaUserSetting::Group::Device, |
| 1054 | "", |
| 1055 | true); |
| 1056 | |
| 1057 | DeclareUserSettingKeyForDebug( |
| 1058 | userSettingPtr, |
| 1059 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_DEBUG_OUTPUT_ENABLE, |
| 1060 | MediaUserSetting::Group::Device, |
| 1061 | int32_t(0), |
| 1062 | true); |
| 1063 | |
| 1064 | DeclareUserSettingKeyForDebug( |
| 1065 | userSettingPtr, |
| 1066 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_AUBCAPTURE_ENABLE, |
| 1067 | MediaUserSetting::Group::Device, |
| 1068 | int32_t(0), |
| 1069 | true); |
| 1070 | |
| 1071 | DeclareUserSettingKeyForDebug( |
| 1072 | userSettingPtr, |
| 1073 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_PATHLIST_ENABLE, |
| 1074 | MediaUserSetting::Group::Device, |
| 1075 | int32_t(0), |
| 1076 | true); |
| 1077 | |
| 1078 | DeclareUserSettingKeyForDebug( |
| 1079 | userSettingPtr, |
| 1080 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_RESET_GFXADDR_PER_CONTEXT_DISABLE, |
| 1081 | MediaUserSetting::Group::Device, |
| 1082 | int32_t(0), |
| 1083 | true); |
| 1084 | |
| 1085 | DeclareUserSettingKeyForDebug( |
| 1086 | userSettingPtr, |
| 1087 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_MMIO_GT_SETTING, |
| 1088 | MediaUserSetting::Group::Device, |
| 1089 | uint32_t(0), |
| 1090 | true); |
| 1091 | |
| 1092 | DeclareUserSettingKeyForDebug( |
| 1093 | userSettingPtr, |
| 1094 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_PERF_TEST_ENABLE, |
| 1095 | MediaUserSetting::Group::Device, |
| 1096 | int32_t(0), |
| 1097 | true); |
| 1098 | |
| 1099 | DeclareUserSettingKeyForDebug( |
| 1100 | userSettingPtr, |
| 1101 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_AUBLOAD_COMMAND_LINE_OPTIONS, |
| 1102 | MediaUserSetting::Group::Device, |
| 1103 | "", |
| 1104 | true); |
| 1105 | |
| 1106 | DeclareUserSettingKeyForDebug( |
| 1107 | userSettingPtr, |
| 1108 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_VE_SCHEDULE_FIXED_MODE_ENABLE, |
| 1109 | MediaUserSetting::Group::Device, |
| 1110 | true, |
| 1111 | true); |
| 1112 | |
| 1113 | DeclareUserSettingKeyForDebug( |
| 1114 | userSettingPtr, |
| 1115 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_AUBCAPTURE_BMP_DUMP_ENABLE, |
| 1116 | MediaUserSetting::Group::Device, |
| 1117 | int32_t(0), |
| 1118 | true); |
| 1119 | |
| 1120 | DeclareUserSettingKeyForDebug( |
| 1121 | userSettingPtr, |
| 1122 | __MEDIA_USER_FEATURE_VALUE_MEDIASOLO_AUBCAPTURE_RECON_DUMP_ENABLE, |
| 1123 | MediaUserSetting::Group::Device, |
| 1124 | int32_t(0), |
| 1125 | true); |
| 1126 | |
| 1127 | DeclareUserSettingKeyForDebug( // Surface Dump Outfile |
| 1128 | userSettingPtr, |
| 1129 | __MEDIA_USER_FEATURE_VALUE_CODECHAL_DEBUG_OUTPUT_DIRECTORY, |
| 1130 | MediaUserSetting::Group::Device, |
| 1131 | "", |
| 1132 | true); |
| 1133 | |
| 1134 | DeclareUserSettingKeyForDebug( |
| 1135 | userSettingPtr, |
| 1136 | "Resource Addr Dump Enable", |
| 1137 | MediaUserSetting::Group::Device, |
| 1138 | 0, |
| 1139 | true); |
| 1140 | |
| 1141 | DeclareUserSettingKeyForDebug( |
| 1142 | userSettingPtr, |
| 1143 | __MEDIA_USER_FEATURE_VALUE_SIM_ENABLE, |
| 1144 | MediaUserSetting::Group::Device, |
| 1145 | 0, |
| 1146 | true, |
| 1147 | true, |
| 1148 | USER_SETTING_CONFIG_PERMANENT_PATH);//"If enabled, specify this is in pre-si simulation/emulation mode." |
| 1149 | |
| 1150 | DeclareUserSettingKeyForDebug( |
| 1151 | userSettingPtr, |
| 1152 | __MEDIA_USER_FEATURE_VALUE_ENABLE_VDBOX_ID_REPORT, |
| 1153 | MediaUserSetting::Group::Device, |
| 1154 | 0, |
| 1155 | true); //"Enable Vdbox physical engine id report" |
| 1156 | |
| 1157 | DeclareUserSettingKeyForDebug( |
| 1158 | userSettingPtr, |
| 1159 | __MEDIA_USER_FEATURE_VALUE_FORCE_VDBOX, |
| 1160 | MediaUserSetting::Group::Device, |
| 1161 | 0, |
| 1162 | true); //"Force the VDBox to be used. (Default 0: FORCE_VDBOX_NONE )" |
| 1163 | |
| 1164 | DeclareUserSettingKeyForDebug( |
| 1165 | userSettingPtr, |
| 1166 | __MEDIA_USER_FEATURE_VALUE_FORCE_VEBOX, |
| 1167 | MediaUserSetting::Group::Device, |
| 1168 | 0, |
| 1169 | true); //"Force the VEBox to be used. (Default 0: FORCE_VEBOX_NONE )" |
| 1170 | |
| 1171 | DeclareUserSettingKeyForDebug( |
| 1172 | userSettingPtr, |
| 1173 | __MEDIA_USER_FEATURE_VALUE_USED_VDBOX_ID, |
| 1174 | MediaUserSetting::Group::Device, |
| 1175 | 0, |
| 1176 | true); //"Used Vdbox physical id. (Default 0: Not used, Each Hex symbol represents one VDBOX, e.g. bits[3:0] means VD0, bits[7:4] means VD1)" |
| 1177 | |
| 1178 | DeclareUserSettingKeyForDebug( |
| 1179 | userSettingPtr, |
| 1180 | __MEDIA_USER_FEATURE_VALUE_FORCE_YFYS, |
| 1181 | MediaUserSetting::Group::Device, |
| 1182 | 0, |
| 1183 | true); //"Force to allocate internal surface as Yf or Ys" |
| 1184 | |
| 1185 | DeclareUserSettingKeyForDebug( |
| 1186 | userSettingPtr, |
| 1187 | __MEDIA_USER_FEATURE_VALUE_NULL_HW_ACCELERATION_ENABLE, |
| 1188 | MediaUserSetting::Group::Device, |
| 1189 | 0, |
| 1190 | true); //"If enabled, go through the nullptr HW driver. (0: Disable, 1: Null HW enabled)." |
| 1191 | |
| 1192 | DeclareUserSettingKeyForDebug( |
| 1193 | userSettingPtr, |
| 1194 | __MEDIA_USER_FEATURE_VALUE_ENABLE_VE_DEBUG_OVERRIDE, |
| 1195 | MediaUserSetting::Group::Device, |
| 1196 | 0, |
| 1197 | true); //"TRUE for Enabling KMD Virtual Engine Debug Override. (Default FALSE: not override)" |
| 1198 | |
| 1199 | DeclareUserSettingKeyForDebug( |
| 1200 | userSettingPtr, |
| 1201 | __MEDIA_USER_FEATURE_VALUE_ENABLE_LINUX_FRAME_SPLIT, |
| 1202 | MediaUserSetting::Group::Device, |
| 1203 | 0, |
| 1204 | true); //"TRUE for Enabling Frame Split. (Default false: disabled)" |
| 1205 | |
| 1206 | DeclareUserSettingKeyForDebug( |
| 1207 | userSettingPtr, |
| 1208 | __MEDIA_USER_FEATURE_VALUE_ENABLE_GUC_SUBMISSION, |
| 1209 | MediaUserSetting::Group::Device, |
| 1210 | 1, |
| 1211 | true); // "To decide if using guc submission." |
| 1212 | |
| 1213 | DeclareUserSettingKeyForDebug( |
| 1214 | userSettingPtr, |
| 1215 | __MEDIA_USER_FEATURE_VALUE_SOFT_RESET_ENABLE, |
| 1216 | MediaUserSetting::Group::Device, |
| 1217 | 0, |
| 1218 | true); // "If enabled, soft reset will be enabled. This key is not valid on Linux." |
| 1219 | |
| 1220 | DeclareUserSettingKeyForDebug( |
| 1221 | userSettingPtr, |
| 1222 | __MEDIA_USER_FEATURE_VALUE_SSEU_SETTING_OVERRIDE, |
| 1223 | MediaUserSetting::Group::Device, |
| 1224 | 0xDEADC0DE, |
| 1225 | true); // "Override Slice/Sub-Slice/EU request" |
| 1226 | |
| 1227 | DeclareUserSettingKeyForDebug( |
| 1228 | userSettingPtr, |
| 1229 | __MEDIA_USER_FEATURE_VALUE_ALLOC_MEMORY_FAIL_SIMULATE_MODE, |
| 1230 | MediaUserSetting::Group::Device, |
| 1231 | 0, |
| 1232 | true); // "MOS memory alloc fail simulate mode, 0-Disable, 1-Random, 2-Traverse." |
| 1233 | |
| 1234 | DeclareUserSettingKeyForDebug( |
| 1235 | userSettingPtr, |
| 1236 | __MEDIA_USER_FEATURE_VALUE_ALLOC_MEMORY_FAIL_SIMULATE_FREQ, |
| 1237 | MediaUserSetting::Group::Device, |
| 1238 | 0, |
| 1239 | true); // "MOS memory alloc fail simulate frequence." |
| 1240 | |
| 1241 | DeclareUserSettingKeyForDebug( |
| 1242 | userSettingPtr, |
| 1243 | __MEDIA_USER_FEATURE_VALUE_ALLOC_MEMORY_FAIL_SIMULATE_HINT, |
| 1244 | MediaUserSetting::Group::Device, |
| 1245 | 0, |
| 1246 | true); // "MOS memory alloc fail simulate counter." |
| 1247 | |
| 1248 | DeclareUserSettingKeyForDebug( |
| 1249 | userSettingPtr, |
| 1250 | __MEDIA_USER_FEATURE_VALUE_OS_API_FAIL_SIMULATE_TYPE, |
| 1251 | MediaUserSetting::Group::Device, |
| 1252 | 0, |
| 1253 | true); // "the OS API fail type to simulate" |
| 1254 | |
| 1255 | DeclareUserSettingKeyForDebug( |
| 1256 | userSettingPtr, |
| 1257 | __MEDIA_USER_FEATURE_VALUE_OS_API_FAIL_SIMULATE_MODE, |
| 1258 | MediaUserSetting::Group::Device, |
| 1259 | 0, |
| 1260 | true); // "MOS OS API fail simulate mode, 0-Disable, 1-Random, 2-Traverse." |
| 1261 | |
| 1262 | DeclareUserSettingKeyForDebug( |
| 1263 | userSettingPtr, |
| 1264 | __MEDIA_USER_FEATURE_VALUE_OS_API_FAIL_SIMULATE_FREQ, |
| 1265 | MediaUserSetting::Group::Device, |
| 1266 | 0, |
| 1267 | true); // "MOS OS API fail simulate frequence." |
| 1268 | |
| 1269 | DeclareUserSettingKeyForDebug( |
| 1270 | userSettingPtr, |
| 1271 | __MEDIA_USER_FEATURE_VALUE_OS_API_FAIL_SIMULATE_HINT, |
| 1272 | MediaUserSetting::Group::Device, |
| 1273 | 0, |
| 1274 | true); // "MOS OS API fail simulate counter." |
| 1275 | |
| 1276 | DeclareUserSettingKeyForDebug( |
| 1277 | userSettingPtr, |
| 1278 | __MEDIA_USER_FEATURE_VALUE_ENABLE_DECODE_VE_CTXSCHEDULING, |
| 1279 | MediaUserSetting::Group::Device, |
| 1280 | 0, |
| 1281 | true); // "TRUE for Enabling Decode Virtual Engine context based scheduling. (Default false: disabled" |
| 1282 | |
| 1283 | DeclareUserSettingKeyForDebug( |
| 1284 | userSettingPtr, |
| 1285 | __MEDIA_USER_FEATURE_VALUE_ENABLE_DECODE_VIRTUAL_ENGINE, |
| 1286 | MediaUserSetting::Group::Device, |
| 1287 | 1, |
| 1288 | true); // "TRUE for Enabling Decode Virtual Engine. (Default TRUE: enabled)" |
| 1289 | |
| 1290 | DeclareUserSettingKeyForDebug( |
| 1291 | userSettingPtr, |
| 1292 | __MEDIA_USER_FEATURE_VALUE_ENABLE_ENCODE_VIRTUAL_ENGINE, |
| 1293 | MediaUserSetting::Group::Device, |
| 1294 | 1, |
| 1295 | true); // "TRUE for Enabling Encode Virtual Engine. (Default TRUE: enabled)" |
| 1296 | |
| 1297 | DeclareUserSettingKeyForDebug( |
| 1298 | userSettingPtr, |
| 1299 | __MEDIA_USER_FEATURE_VALUE_MEDIA_TILE_ENCODING_1_DEFAULT, |
| 1300 | MediaUserSetting::Group::Device, |
| 1301 | 0, |
| 1302 | true); // "DDI Res tile as 1 default" |
| 1303 | |
| 1304 | DeclareUserSettingKeyForDebug( |
| 1305 | userSettingPtr, |
| 1306 | __MEDIA_USER_FEATURE_VALUE_TILE_ENCODING_1_INTERNAL_USED, |
| 1307 | MediaUserSetting::Group::Device, |
| 1308 | 0, |
| 1309 | true); // "Internal Res tile as 1 used" |
| 1310 | |
| 1311 | DeclareUserSettingKeyForDebug( |
| 1312 | userSettingPtr, |
| 1313 | __MEDIA_USER_FEATURE_VALUE_TILE_ENCODING_3_INTERNAL_USED, |
| 1314 | MediaUserSetting::Group::Device, |
| 1315 | 0, |
| 1316 | true); // "Internal Res tile as 3 used" |
| 1317 | |
| 1318 | DeclareUserSettingKeyForDebug( // Surface Dump Outfile |
| 1319 | userSettingPtr, |
| 1320 | __VPHAL_DBG_SURF_DUMP_OUTFILE_KEY_NAME, |
| 1321 | MediaUserSetting::Group::Device, |
| 1322 | "", |
| 1323 | true); |
| 1324 | |
| 1325 | DeclareUserSettingKeyForDebug( // VP Surface Dump Location |
| 1326 | userSettingPtr, |
| 1327 | __VPHAL_DBG_SURF_DUMP_LOCATION_KEY_NAME, |
| 1328 | MediaUserSetting::Group::Device, |
| 1329 | "", |
| 1330 | true); |
| 1331 | |
| 1332 | DeclareUserSettingKeyForDebug( // Manual trigger to start VP Surface Dump |
| 1333 | userSettingPtr, |
| 1334 | __VPHAL_DBG_SURF_DUMP_MANUAL_TRIGGER_KEY_NAME, |
| 1335 | MediaUserSetting::Group::Device, |
| 1336 | -1, |
| 1337 | true); |
| 1338 | |
| 1339 | DeclareUserSettingKeyForDebug( // VP Surface Dump Start Frame |
| 1340 | userSettingPtr, |
| 1341 | __VPHAL_DBG_SURF_DUMP_START_FRAME_KEY_NAME, |
| 1342 | MediaUserSetting::Group::Device, |
| 1343 | 0, |
| 1344 | true); |
| 1345 | |
| 1346 | DeclareUserSettingKeyForDebug( // VP Surface Dump End Frame |
| 1347 | userSettingPtr, |
| 1348 | __VPHAL_DBG_SURF_DUMP_END_FRAME_KEY_NAME, |
| 1349 | MediaUserSetting::Group::Device, |
| 1350 | -1, |
| 1351 | true); |
| 1352 | |
| 1353 | DeclareUserSettingKeyForDebug( // VP Surface dump each plance seprately |
| 1354 | userSettingPtr, |
| 1355 | __VPHAL_DBG_SURF_DUMPER_ENABLE_PLANE_DUMP, |
| 1356 | MediaUserSetting::Group::Device, |
| 1357 | 0, |
| 1358 | true); |
| 1359 | |
| 1360 | DeclareUserSettingKeyForDebug( // VP Surface dump aux data enable |
| 1361 | userSettingPtr, |
| 1362 | __VPHAL_DBG_SURF_DUMP_ENABLE_AUX_DUMP, |
| 1363 | MediaUserSetting::Group::Device, |
| 1364 | 0, |
| 1365 | true); |
| 1366 | |
| 1367 | DeclareUserSettingKeyForDebug( // VP Surface Dump: Locking Resource |
| 1368 | userSettingPtr, |
| 1369 | __VPHAL_DBG_SURF_DUMPER_RESOURCE_LOCK, |
| 1370 | MediaUserSetting::Group::Device, |
| 1371 | 0, |
| 1372 | true); |
| 1373 | |
| 1374 | DeclareUserSettingKeyForDebug( // VP State Dump Enable |
| 1375 | userSettingPtr, |
| 1376 | __VPHAL_DBG_STATE_DUMP_ENABLE, |
| 1377 | MediaUserSetting::Group::Device, |
| 1378 | 0, |
| 1379 | true); |
| 1380 | |
| 1381 | DeclareUserSettingKeyForDebug( // VP PostComp Surface Copy Dump Enable |
| 1382 | userSettingPtr, |
| 1383 | __VPHAL_DBG_SURF_DUMP_POSTCOMP_RESOURCE_COPY, |
| 1384 | MediaUserSetting::Group::Device, |
| 1385 | 0, |
| 1386 | true); |
| 1387 | |
| 1388 | DeclareUserSettingKeyForDebug( |
| 1389 | userSettingPtr, |
| 1390 | __MEDIA_USER_FEATURE_VALUE_SPLIT_SCREEN_DEMO_POSITION, |
| 1391 | MediaUserSetting::Group::Device, |
| 1392 | 0, |
| 1393 | true); //Demo position: Disable(0), Left(1), Right(2), Top(3), Bottom(4) |
| 1394 | |
| 1395 | DeclareUserSettingKeyForDebug( |
| 1396 | userSettingPtr, |
| 1397 | __MEDIA_USER_FEATURE_VALUE_SPLIT_SCREEN_DEMO_PARAMETERS, |
| 1398 | MediaUserSetting::Group::Device, |
| 1399 | 0, |
| 1400 | true); |
| 1401 | /**********************MOCK ADAPTER**********************************/ |
| 1402 | DeclareUserSettingKeyForDebug( |
| 1403 | userSettingPtr, |
| 1404 | __MEDIA_USER_FEATURE_VALUE_NULLHW_ENABLE, |
| 1405 | MediaUserSetting::Group::Device, |
| 1406 | 0, |
| 1407 | true); // "Enable NULL HW or not" |
| 1408 | #if (_DEBUG || _RELEASE_INTERNAL) |
| 1409 | DeclareUserSettingKeyForDebug( |
| 1410 | userSettingPtr, |
| 1411 | __MEDIA_USER_FEATURE_VALUE_NULLHW_PROXY_REPEAT_COUNT, |
| 1412 | MediaUserSetting::Group::Device, |
| 1413 | 0, |
| 1414 | true); |
| 1415 | #endif |
| 1416 | DeclareUserSettingKeyForDebug( |
| 1417 | userSettingPtr, |
| 1418 | __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PLATFORM, |
| 1419 | MediaUserSetting::Group::Device, |
| 1420 | 33, |
| 1421 | true); //"Sets the platform for MockAdaptor, default is tgllp" |
| 1422 | |
| 1423 | DeclareUserSettingKeyForDebug( |
| 1424 | userSettingPtr, |
| 1425 | __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_STEPPING, |
| 1426 | MediaUserSetting::Group::Device, |
| 1427 | "a0", |
| 1428 | true); //"Sets the platform stepping for MockAdaptor. (For example a0, b1, c0, etc)" |
| 1429 | |
| 1430 | DeclareUserSettingKeyForDebug( |
| 1431 | userSettingPtr, |
| 1432 | __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_DEVICE, |
| 1433 | MediaUserSetting::Group::Device, |
| 1434 | 39497, |
| 1435 | true); //"Device ID of mock device, default is 0x9A49" |
| 1436 | |
| 1437 | DeclareUserSettingKeyForDebug( |
| 1438 | userSettingPtr, |
| 1439 | __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PIPE, |
| 1440 | MediaUserSetting::Group::Device, |
| 1441 | 0, |
| 1442 | true); //"The pipe number of mock device, default is 1" |
| 1443 | |
| 1444 | //Tile resource info report |
| 1445 | DeclareUserSettingKeyForDebug( |
| 1446 | userSettingPtr, |
| 1447 | __MEDIA_USER_FEATURE_VALUE_TILE_INFO, |
| 1448 | MediaUserSetting::Group::Device, |
| 1449 | "", |
| 1450 | true); //""Report tile infomation including tileID and memory region size" |
| 1451 | |
| 1452 | DeclareUserSettingKeyForDebug( |
| 1453 | userSettingPtr, |
| 1454 | __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_RCS, |
| 1455 | MediaUserSetting::Group::Device, |
| 1456 | "", |
| 1457 | true); //"Report RCS instance infomation" |
| 1458 | |
| 1459 | DeclareUserSettingKeyForDebug( |
| 1460 | userSettingPtr, |
| 1461 | __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_BLT, |
| 1462 | MediaUserSetting::Group::Device, |
| 1463 | "", |
| 1464 | true); //"Report BLT instance infomation" |
| 1465 | |
| 1466 | DeclareUserSettingKeyForDebug( |
| 1467 | userSettingPtr, |
| 1468 | __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_VCS, |
| 1469 | MediaUserSetting::Group::Device, |
| 1470 | "", |
| 1471 | true); //"Report VCS instance infomation." |
| 1472 | |
| 1473 | DeclareUserSettingKeyForDebug( |
| 1474 | userSettingPtr, |
| 1475 | __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_VECS, |
| 1476 | MediaUserSetting::Group::Device, |
| 1477 | "", |
| 1478 | true); //"Report VECS instance infomation." |
| 1479 | |
| 1480 | DeclareUserSettingKeyForDebug( |
| 1481 | userSettingPtr, |
| 1482 | __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_CCS, |
| 1483 | MediaUserSetting::Group::Device, |
| 1484 | "", |
| 1485 | true); //"Report CCS instance infomation." |
| 1486 | |
| 1487 | DeclareUserSettingKeyForDebug( |
| 1488 | userSettingPtr, |
| 1489 | __MEDIA_USER_FEATURE_VALUE_LINUX_PERFORMANCETAG_ENABLE, |
| 1490 | MediaUserSetting::Group::Device, |
| 1491 | 0, |
| 1492 | true); //"Linux Performance Tag." |
| 1493 | |
| 1494 | DeclareUserSettingKeyForDebug( |
| 1495 | userSettingPtr, |
| 1496 | "Command Parser Input File Path", |
| 1497 | MediaUserSetting::Group::Device, |
| 1498 | std::string(), |
| 1499 | false); |
| 1500 | |
| 1501 | DeclareUserSettingKeyForDebug( |
| 1502 | userSettingPtr, |
| 1503 | __MEDIA_USER_FEATURE_SET_MCPY_FORCE_MODE, |
| 1504 | MediaUserSetting::Group::Device, |
| 1505 | 0, // 0 is ignore. 1 blt, 2 render, 3 vebox, 4 bypass copy engine; |
| 1506 | true); //"media copy force copy model." |
| 1507 | |
| 1508 | DeclareUserSettingKeyForDebug( |
| 1509 | userSettingPtr, |
| 1510 | __MEDIA_USER_FEATURE_ENABLE_VECOPY_SMALL_RESOLUTION, |
| 1511 | MediaUserSetting::Group::Device, |
| 1512 | 0, |
| 1513 | true); |
| 1514 | |
| 1515 | DeclareUserSettingKeyForDebug( |
| 1516 | userSettingPtr, |
| 1517 | "Bypass Evict", |
| 1518 | MediaUserSetting::Group::Device, |
| 1519 | 0, |
| 1520 | true); |
| 1521 | |
| 1522 | DeclareUserSettingKeyForDebug( |
| 1523 | userSettingPtr, |
| 1524 | "ForceTargetUsage", |
| 1525 | MediaUserSetting::Group::Sequence, |
| 1526 | uint32_t(0), |
| 1527 | false); |
| 1528 | |
| 1529 | DeclareUserSettingKeyForDebug( |
| 1530 | userSettingPtr, |
| 1531 | "ChromaPrefetchDisable", |
| 1532 | MediaUserSetting::Group::Sequence, |
| 1533 | uint32_t(0), // 0 chroma prefetch enabled, 1 chroma prefetch disabled ; |
| 1534 | false); |
| 1535 | |
| 1536 | DeclareUserSettingKeyForDebug( |
| 1537 | userSettingPtr, |
| 1538 | __MEDIA_USER_FEATURE_VALUE_FORCE_ENGINE_GROUP_SCHEDULING, |
| 1539 | MediaUserSetting::Group::Device, |
| 1540 | 0, |
| 1541 | false); |
| 1542 | |
| 1543 | DeclareUserSettingKeyForDebug( |
| 1544 | userSettingPtr, |
| 1545 | __MEDIA_USER_FEATURE_VALUE_FORCE_DISALBE_64BIT_TOKEN, |
| 1546 | MediaUserSetting::Group::Device, |
| 1547 | 0, |
| 1548 | false); |
| 1549 | |
| 1550 | DeclareUserSettingKeyForDebug( |
| 1551 | userSettingPtr, |
| 1552 | __MEDIA_USER_FEATURE_VALUE_REPORT_VEBOX_SCALABILITY_IN_USE, |
| 1553 | MediaUserSetting::Group::Device, |
| 1554 | 0, |
| 1555 | true); //"Report Vebox scalability in use status (Default 0: not in use)" |
| 1556 | |
| 1557 | DeclareUserSettingKeyForDebug( |
| 1558 | userSettingPtr, |
| 1559 | __MEDIA_USER_FEATURE_VALUE_REPORT_VDBOX_SCALABILITY_IN_USE, |
| 1560 | MediaUserSetting::Group::Device, |
| 1561 | 0, |
| 1562 | true); //"Report Vdbox scalability in use status (Default 0: not in use)" |
| 1563 | |
| 1564 | return MOS_STATUS_SUCCESS; |
| 1565 | } |
| 1566 | |
| 1567 | #endif |