compute-runtime/opencl/test/unit_test/mem_obj
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
..
linux fix: align thread group to dss size if kernel uses slm 2024-10-17 15:30:19 +02:00
windows fix: align thread group to dss size if kernel uses slm 2024-10-17 15:30:19 +02:00
CMakeLists.txt refactor: remove cl pipe related logic 2025-02-25 17:56:53 +01:00
buffer_bcs_tests.cpp test: correct expectations 2/2 2025-03-26 09:03:13 +01:00
buffer_pin_tests.cpp refactor: Rename member variables to camelCase 2023-04-26 16:05:07 +02:00
buffer_pool_alloc_tests.cpp Revert "fix: configure ISA Pool params based on productHelper" 2025-03-10 22:41:13 +01:00
buffer_set_arg_tests.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
buffer_tests.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
buffer_tests_pvc_and_later.cpp performance: Mitigate dc flush on LNL Windows 2024-08-28 13:35:17 +02:00
buffer_tests_xehp_and_later.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
create_image_format_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
create_image_in_local_memory_tests.cpp refactor: correct naming of MemoryPool enum values 2023-12-13 07:51:39 +01:00
destructor_callback_tests.cpp Correct shared fixture methods name to meet clang-tidy requirements 2022-08-16 12:52:49 +02:00
get_mem_object_info_subbuffer_tests.cpp fix(ocl): querying memobj offset 2024-01-19 15:48:46 +01:00
get_mem_object_info_tests.cpp fix: set proper allocation in MemObj::getMemObjectInfo 2025-03-24 16:07:35 +01:00
image1d_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
image2d_from_buffer_tests.cpp performance: Copy hostptr on cpu for host buffer when mitigate dc flush 2024-08-30 19:55:45 +02:00
image2d_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
image3d_tests.cpp refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
image_array_size_tests.cpp test: correct dead code in tests 2024-05-29 08:46:00 +02:00
image_compression_fixture.h Move files from shared/test/unit_test to /common (preamble, utilities) 2022-08-17 11:24:58 +02:00
image_format_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
image_from_subbuffer_tests.cpp refactor: remove redundant definitions KB/MB/GB 2023-12-05 08:55:18 +01:00
image_redescribe_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
image_release_mapped_ptr_tests.cpp refactor: correct naming of allocation types 2023-12-11 16:23:37 +01:00
image_set_arg_tests.cpp refactor: refactor mcs surface handling on xe2 and later 2025-02-13 23:00:54 +01:00
image_snorm_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
image_tests.cpp fix: respect compression flag in capability table 2025-04-03 15:36:55 +02:00
image_tests_pvc_and_later.cpp refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
image_tests_tgllp_and_later.cpp refactor: remove not needed code 2024-03-08 18:18:55 +01:00
image_tests_xehp_and_later.cpp refactor: refactor mcs surface handling on xe2 and later 2025-02-13 23:00:54 +01:00
image_tiled_tests.cpp refactor: refactor mcs surface handling on xe2 and later 2025-02-13 23:00:54 +01:00
image_transfer_tests.cpp test: allowing neo ULT build with optimization enabled 2/n 2024-11-25 16:21:40 +01:00
image_validate_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
map_operations_handler_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
mem_obj_destruction_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
mem_obj_helper_tests.cpp fix: revert changes around zero-copy 2024-07-19 12:29:18 +02:00
mem_obj_tests.cpp refactor: reorder members to reduce internal padding in structs 2024-03-25 15:50:00 +01:00
nv12_image_tests.cpp fix: allow for image array type if array size is 1 for Xe2 and later 2025-02-05 13:50:05 +01:00
packed_yuv_image_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
sub_buffer_tests.cpp Cleanup includes 43 2023-01-25 11:33:39 +01:00
zero_copy_tests.cpp fix: revert changes around zero-copy 2024-07-19 12:29:18 +02:00