compute-runtime/opencl/test/unit_test/helpers
Kamil Kopryk dd3d294f87 performance: cache MOCS values
This change caches the most used MOCS values:

* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CONST);
* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER);
* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED);
inside gmmHelper class during initialization to avoid repeated
calls of virtual functions, branches and/or gmm lib access.

and adds more readably corresponding getters:
* getL1EnabledMOCS
* getL3EnabledMOCS
* getUncachedMOCS

If force all resources uncached is called,
these 3 cached mocs values are reinitialized

It also changes the order of gmmHelper members, to avoid
not needed padding after addressWidth
and simplifies logic in getMocsIndex function
for xehp and later products.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-04-14 14:12:48 +02:00
..
windows fix: correct loading L0 loader functions 2024-10-17 15:39:20 +02:00
CMakeLists.txt feature: add support for Panther Lake platform 2025-01-07 11:39:56 +01:00
api_specific_config_ocl_tests.cpp refactor: add setupTimestampPacketFlushL3 function 2025-03-24 13:10:03 +01:00
base_object_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_execution_environment_helper.cpp refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
cl_execution_environment_helper.h Move execution environment helper to shared 2021-12-31 11:36:44 +01:00
cl_gfx_core_helper_tests_xehp_and_later.cpp refactor: move methods from CompilerProductHelper to ReleaseHelper 2023-08-02 10:40:48 +02:00
cl_helper_tests.cpp refactor: update hw cmds base from gen8 to gen12lp 2024-09-19 18:07:46 +02:00
cl_hw_parse.h Cleanup hw_parse.h 2021-10-13 11:10:22 +02:00
cl_memory_properties_helpers_tests.cpp fix: update OpenCL headers to v2023.12.14 2024-01-25 16:42:14 +01:00
dispatch_info_builder_tests.cpp refactor: create new members for storing spill and private memory in scratch 2024-01-23 12:42:25 +01:00
dispatch_info_tests.cpp refactor: create new members for storing spill and private memory in scratch 2024-01-23 12:42:25 +01:00
get_info_status_mapper_tests.cpp refactor: add NOLINT for pending problems 2024-10-10 11:46:35 +02:00
hardware_commands_helper_tests.cpp refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
hardware_commands_helper_tests.h refactor(opencl/gtpin): Extend OCL/GTPin interface for stateless kernels 2023-03-23 13:14:16 +01:00
heap_assigner_ocl_tests.cpp refactor: correct naming of allocation types 2023-12-11 16:23:37 +01:00
kmd_notify_tests.cpp performance: debug key for adjust ULLS on battery 2024-03-22 14:24:00 +01:00
mipmap_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
queue_helpers_tests.cpp Revert "Add finish before command queue is released" 2022-08-05 19:25:23 +02:00
sampler_helpers_tests.cpp style: configure readability-identifier-naming.FunctionCase 2022-05-17 20:55:56 +02:00
task_information_tests.cpp test: correct expectations 2025-03-25 16:59:05 +01:00
test_preamble_dg2_and_later.cpp feature: allow removal of heapful code paths 2025-03-27 01:34:35 +01:00
test_preamble_xe3_and_later.cpp test: improve HWTEST2_F macro 2025-04-08 17:18:14 +02:00
test_preamble_xehp_and_later.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
timestamp_packet_1_tests.cpp test: correct expectations 2025-03-25 16:59:05 +01:00
timestamp_packet_2_tests.cpp test: correct expectations 2025-03-25 16:59:05 +01:00
timestamp_packet_tests.h fix: add unrecoverable to avoid OOB access 2024-01-16 00:12:11 +01:00
transfer_properties_tests.cpp refactor: correct naming of MemoryPool enum values 2023-12-13 07:51:39 +01:00
validator_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00