Commit Graph

207 Commits

Author SHA1 Message Date
07e5aaa44c Use HwHelper to set extra AllocationData
Change-Id: I29d38b845287c169e538f78da2a7f0e58e589754
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-06-03 09:37:50 +02:00
b156393615 Add mmap mock to DRM memory manager
Change-Id: I0799a909659842e6bba1f5ec5de8f6310ba1b329
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-06-02 22:08:35 +02:00
aa8e9fb634 Rename ocl DeviceFixture and add shared tests specific one
Change-Id: Ib61e987388ba14b721a573e3e84332a7f6c9ef9c
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-06-01 15:44:05 +02:00
d5ad9b42c1 Silence clang-tidy checks for method names in overridden interface
Change-Id: I4decc88d10ea13f68896d9cfaea6f9f4de0feab2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-01 15:37:17 +02:00
f4ef256900 Program hardware context in L0 command queue
Related-To: NEO-4577

Change-Id: I204a5e86ad3b23b71071bbbfd58c23a408f6865f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-29 13:07:38 +02:00
3e8f05d702 remove kernelHeader from HeapInfo
Change-Id: Ic2d441df15a7f75b5f3ef41d484969148e59715f
2020-05-28 03:59:49 -07:00
062846e868 Fixing compiler mock v3
Change-Id: I009bb6664f837a1614606f2bba2e28592e7c251a
2020-05-25 14:42:54 +02:00
786cd28f2b Remove not needed pragmas -Winconsistent-missing-override from OCL ULT
Change-Id: Id8a67e33ed7191ba0acd2bb9b80336b6bb72b13a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-18 14:07:12 +02:00
ac426b5108 TBX csr downloads allocations on queryStatus calls
Change-Id: I57fd98f4227b6d03430db6b96cfd21dd726919a3
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-13 16:28:19 +02:00
4216e962b2 Assign GPU range for pinBB in case of limitedRanged GPU addr space
Change-Id: I3ad90c8eac8664af16b0c9af7b7420cf77f31d8a
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
2020-05-12 13:16:41 +02:00
cb8e9656ee Merge MemoryPropertiesFlags files
Move mem_properties_parser_helper files to memory_properties_flags_helpers
Rename MemoryPropertiesParser to MemoryPropertiesHelper

Related-To: NEO-4143
Change-Id: Ib35360bceff90be2383696083226f8be1e47538c
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-05-08 14:17:36 +02:00
c3ea485752 Add ClDevice function to query OCL2.1 support
Change-Id: I4a1e7def6b26241592dba4ecd4a6a6cb3bb69835
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-05-08 13:37:19 +02:00
ef4fae3903 Enable TBX mode in level zero
RelatedTo: NEO-4644

Change-Id: I76913d6b7c7d978a5a90a7a574778c67283497c1
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-06 16:33:15 +02:00
c80ff3a158 Setup context type based on provided devices
Related-To: NEO-4484
Change-Id: I1db354237b87167d4fa824e63737f6fff2ad77cb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-05 09:49:11 +02:00
08af6cad48 IGC interface cleanup
Change-Id: I4dc1a35cea636e00187c5f793a1539c4fdfac5f1
2020-04-28 21:01:48 +02:00
b0ed3b2ab1 Refactor MemoryPropertiesFlags
Rename:
- MemoryPropertiesFlags to MemoryProperties
- MemoryPropertiesParser to MemoryPropertiesParserHelper
- getMemoryPropertiesFlags to getFlags
- getMemoryPropertiesFlagsIntel to getFlagsIntel
- functions involved with MemoryPropertiesFlags

Related-To: NEO-4143
Change-Id: I4eec67bba95dd5354d0df43c31e6ca724909138e
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-04-28 18:15:25 +02:00
fd195f0967 LoopAtPlatformInitialize renamed to LoopAtDriverInit and triggers earlier
Related-To: NEO-4526
Change-Id: I13067badfbaf9f46c993b08126fb35e53d68f6d3
2020-04-28 13:47:04 +02:00
5bfc20ff28 ULTs amendments around fence allocation
Related-To: NEO-3216

Change-Id: I37c8b94cbd8d06dafc8a7a3d30fa40fad602a4ac
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-04-27 15:44:31 +02:00
f93072ddf5 Refactor image formats
Change-Id: I01eaf33e4c31437f3a820655cda21f3e2cf6d6df
2020-04-23 15:35:30 +02:00
42810f4690 Return 0 when Program Scope Global Variables are not supported
clGetDeviceInfo and clGetProgramBuildInfo may return 0 when Program
Scope Global Variables are not supported

Related-To: NEO-4368

Change-Id: I2c319c53ffa2e02eeb370775023f5d73219cb39e
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-04-21 18:40:10 +02:00
11edcd8fc9 Add SyncBufferHandler test
Verify correct programming.

Related-To: NEO-4543

Change-Id: I19c0f4130f0cfa9acbe11f8598f104863fb006ea
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-20 09:58:36 +02:00
86a5946b7b Pass device bitfield to TagAllocator
Related-To: NEO-4484
Change-Id: I56602a15d18ff577a97d573eeda51e7866525aa7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-17 10:41:18 +02:00
a604eee07b Pass proper device bitfield when allocating global/constant surface
Related-To: NEO-4484
Change-Id: Iecb968bfc6ed3f7e3dc216dab3f26693c1b949d6
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-17 09:43:15 +02:00
0c404bc880 Pass device bitfield to allocation properties when creating mem obj
Related-To: NEO-4484
Change-Id: I961e9122591dc7293e37d5c1ca58cbcd649ee653
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-16 15:01:37 +02:00
87d0a78095 Add support for memory dumps in TBX mode with AUB dump
Related-To: NEO-4600

Change-Id: I4aa45c2745400d49e5bd92e0fc0aa76aa5df8678
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-04-16 07:59:14 +02:00
e5072225a5 Pass optimization disable option based on debugger query
Related-To: NEO-4404

Change-Id: Ie6de202dc8e818a540983b8e5fa6c789b7c15b98
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-09 19:02:02 +02:00
86f5555f67 Fill OsInterface in Wddm::init
Change-Id: I0a4645040b06870007a20b46dbea562bf6024ad3
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-09 14:49:24 +02:00
5146503dcf Add typed MockContexts
Change-Id: I51e52e54b397ccd7afbbb3c21c9b2f0bbbc3704f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-09 10:31:48 +02:00
1a35298fdb Create OsInterface before calling Wddm::init
Related-To: NEO-3691
Change-Id: I33690e4297b6ddd3195c272de00f0c946c56380b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-04-07 20:12:36 +02:00
495bc4024e Remove unnecessary platform() uses from gmm tests
Related-To: NEO-4207

Change-Id: I047726edd7f0847510b350ac514072f25ff1b8b3
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-04-07 10:49:41 +02:00
bd247d725b AppendLaunchKernel tests
RelatedTo: NEO-4515

Change-Id: I1f719ea1f60f313fba44d49f84fe2caf6ea4e5c4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-06 15:46:04 +02:00
91b2758f05 Add UltDeviceFactory
Change-Id: Ib35bb6132f69e887fad3db282d7c0206d35515b7
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-03 20:16:13 +02:00
43dba9de4a Move MockDevice to shared
Change-Id: If3a4ea2bb3f47bcb8176516977a626517f25a49f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-03 08:23:06 +02:00
a52aaca401 Move glDllHelper out of windows directory and rename
Change-Id: I87a4ee3108465efa9b73f43f31dec06f4042cbf8
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-04-03 07:55:25 +02:00
f096d71a75 Add diagnostic mode to direct submission
Related-To: NEO-4338

Change-Id: Ibcdc1b6a1762827337e4ff5364a972702130195a
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-04-02 17:50:59 +02:00
d0527e1049 Rename memory_constants.h to constants.h
Change-Id: I05b5d20bac12935dc6625b94adc3a03c98c19b49
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-02 14:19:39 +02:00
4d80f21dac Reuse mapAllocation for memory transfer during buffer creation
Change-Id: Idcdabb4a9c61b5cbf69164c51ca1690a64665a26
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2020-04-02 14:07:20 +02:00
385482e3fc Move VariableBackup to shared
Change-Id: Ib7e316f8d497f1854d977b6420f8c978de58c9ab
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-04-02 13:42:41 +02:00
5587670c4f Implement expect memory for AUB tests in TBX mode
Related-To: NEO-4459

Change-Id: I7ab64ff124f19baabb00cbad50b1a2065379b0c6
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-04-02 13:22:09 +02:00
24cee4611d Remove gl sharing related code from os_interface
Change-Id: Iece2fbdadefe338384f8961eef2720ff9b381e23
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-04-01 08:02:21 +02:00
2ac968e6c2 Add alignment capability do OSMemory::reserveCpuAddressRange
Resolves: NEO-4510

Change-Id: Iffcb33d1c06ca930345df0216bc5d3d1ce12c313
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2020-04-01 07:46:40 +02:00
3b4276c8f7 Move AsyncEventsHandler to ClExecutionEnvironment
Related-To: NEO-4207

Change-Id: If859f995aae57ac03de13d57cc5a38c97303bbb4
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-03-31 15:42:07 +02:00
d38ae0e07a Use TestedDrmCommandStreamReceiver in DrmMemoryManager tests
Related-To: NEO-4512
Change-Id: If8ee746d11ffaf8c2b95a13289e15bf1064b4588
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-30 11:55:56 +02:00
a409368fa3 Use nondefault rootDeviceIndex in DrmMemoryManagerWithExplicitExpectationTests
Related-To: NEO-4512
Change-Id: I5089980a705cfc0dfaaa54c9053458e7a86c2930
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-03-30 09:16:41 +02:00
0c67b0cb57 Reconfigure DrmMemoryManager tests to use non-default root device index
pass rootDeviceIndex to TestedDrmCommandStreamReceiver

Related-To: NEO-4512

Change-Id: I7257e5b9f63a1b6e5bba9b6ca48583e95deae606
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-03-27 12:59:28 +01:00
b36fb6c0bf Remove peekGmmHelper() and peekGmmClientContext() from platform
Related-To: NEO-4207

Change-Id: Id4caec45b24ae5c7790f283b0cbf78c17e60d74e
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-03-26 14:44:57 +01:00
0f0a42de89 Pass root device index to all MockAllocationProperties constructors
Related-To: NEO-4512, NEO-3691
Change-Id: I631228191ca472e883b5233cb41ae8b6254588e9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-26 11:34:47 +01:00
4e4d160efd Extend MockAllocationProperties constructor, pass root device index
Related-To: NEO-4512, NEO-3691
Change-Id: I1af3e513ae272e5baae116a176445e6e6af297fb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-25 21:48:36 +01:00
b1ab1f0fe6 Update MockClDevice
Change-Id: Ic9a3e01ee309344b1fce450ae362503382095aa5
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-03-25 16:40:17 +01:00
5954dbdda4 Move tests_configuration.h to shared
- add ult configuration to level zero core tests

Change-Id: Ie291395adb607df8c558b924e32ce2cedbce3f93
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-25 13:03:06 +01:00