compute-runtime/opencl/test/unit_test/command_stream
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
..
CMakeLists.txt feature: add initial support for Xe2 platforms 2024-07-09 10:30:27 +02:00
cl_command_stream_receiver_tests.cpp fix: align thread group to dss size if kernel uses slm 2024-10-17 15:30:19 +02:00
cl_tbx_command_stream_tests.cpp Revert "performance: align structures for 64-bit platforms" 2025-01-15 09:02:01 +01:00
cmd_parse_tests.cpp refactor: use getInitGpuWalker function in ults 2024-06-26 09:31:12 +02:00
command_stream_fixture.h Remove usage of TestLegacy from opencl tests 2022-08-16 22:16:48 +02:00
command_stream_receiver_flush_task_1_tests.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
command_stream_receiver_flush_task_2_tests.cpp feature: Add ftrHeaplessMode flag 2025-04-02 21:06:05 +02:00
command_stream_receiver_flush_task_3_tests.cpp fix: invalidate caches when heap is placed into reuse list 2025-03-31 12:30:29 +02:00
command_stream_receiver_flush_task_4_tests.cpp refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
command_stream_receiver_flush_task_gmock_tests.cpp test: improve HWTEST2_F macro 2025-04-08 17:18:14 +02:00
command_stream_receiver_flush_task_tests_xehp_and_later.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
command_stream_receiver_hw_1_tests.cpp feature: allow removal of heapful code paths 2025-03-27 01:34:35 +01:00
command_stream_receiver_hw_2_tests.cpp test: correct expectations 2/2 2025-03-26 09:03:13 +01:00
command_stream_receiver_hw_3_tests.cpp refactor: create new members for storing spill and private memory in scratch 2024-01-23 12:42:25 +01:00
command_stream_receiver_hw_fixture.h refactor: move blit post sync data to BlitProperties 2025-01-22 18:35:21 +01:00
command_stream_receiver_hw_tests.inl Cleanup includes 30 2023-01-13 08:22:14 +01:00
command_stream_receiver_hw_tests_dg2_and_later.cpp refactor: Remove 3DSTATE_BTD_BODY structure 2024-12-31 16:27:29 +01:00
command_stream_receiver_hw_tests_xe2_and_later.cpp test: correct expectations in opencl tests if heapless enabled 4/4 2024-09-10 09:22:41 +02:00
command_stream_receiver_hw_tests_xehp_and_later.cpp feature: Add ftrHeaplessMode flag 2025-04-02 21:06:05 +02:00
command_stream_receiver_mt_tests.cpp refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
create_command_stream_receiver_tests.cpp feature: additional checkers to enable feature 2025-03-26 18:06:20 +01:00
get_devices_tests.cpp refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
implicit_scaling_ocl_tests.cpp Use full path to include test.h 1/n 2021-12-15 12:34:34 +01:00
submissions_aggregator_tests.cpp test: refactor tests to work with secondary engines 2 2025-01-23 12:41:27 +01:00
thread_arbitration_policy_helper.cpp Change ThreadArbitrationPolicy enum type to int32_t 2022-03-07 20:04:24 +01:00
thread_arbitration_policy_helper.h Add missing pragma once in header files 2022-06-07 16:19:11 +02:00
thread_arbitration_policy_helper_tests.cpp Change ThreadArbitrationPolicy enum type to int32_t 2022-03-07 20:04:24 +01:00