compute-runtime/opencl/test/unit_test/linux
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: enable usm reuse cleaner 2025-01-25 00:38:04 +01:00
drm_wrap.h Remove redundant device and revision id members from Drm class 2022-08-09 10:13:32 +02:00
main_linux_dll.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
mock_os_layer.cpp test: use realistic values in topology query tests 2024-07-29 16:34:22 +02:00
mock_os_layer.h test: Add drm tests for memory and engine query 2024-07-17 07:57:01 +02:00
os_interface_linux_tests.cpp Refactor: pass root device environment to gmm client context 2022-11-28 13:26:29 +01:00
va_tests.cpp Use full path to include test.h 1/n 2021-12-15 12:34:34 +01:00