Commit Graph

160 Commits

Author SHA1 Message Date
9a9bd6a805 Fix issue with creating image from buffer in local memory.
Resolves: NEO-4605

Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com>
2020-12-07 16:39:29 +01:00
0d943e95c4 Store KernelInfo per root device in Kernel
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-12-07 12:22:28 +01:00
64bba71abb Improve UnitTestHelper
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-30 20:18:07 +01:00
84f3d44968 Enable memory transfer between buffers rect
Unlock flow for multi device setup in:
- enqueueCopyBufferRect
- enqueueReadBufferRect
- enqueueWriteBufferRect

Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-30 10:35:34 +01:00
6c4b1f951c Do not force cl_khr_3d_image_writes extension when compiling kernels
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled.
Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-11-27 17:20:46 +01:00
baea633bdd Correct logic in MultiRootDeviceFixture
Related-To: NEO-4589

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-27 16:22:39 +01:00
b85a8ace68 Pass root device index to Kernel's methods
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-25 12:49:15 +01:00
7ec69c33f9 Store SSH per root device in Kernel
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-24 17:57:31 +01:00
a67e829fa8 Store crossThreadData per root device in Kernel
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-20 20:49:50 +01:00
f2a73ef0f5 Enable memory transfer between buffers in enqueueCopyBuffer
Unlock enqueueCopyBuffer flow, for multi device setup

Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-19 14:03:44 +01:00
bfbc0e07ba Update MemoryProperties initialization
Always specify the device.

Related-To: NEO-4651

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-11-17 16:52:23 +01:00
39e6548ef6 Add mi_arb_check between blit commands
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-17 13:07:50 +01:00
a1b5d5a335 Dont pass device to Kernel's ctor
Kernel should reuse devices from program

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-13 11:42:48 +01:00
ed04053007 Add hwhelper function allowRenderCompressionForContext
Rename and unify compression related functions.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-11-12 13:16:51 +01:00
7fcc1bc1ad Use first device for blit transfer when buffer is creating
Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-06 17:59:04 +01:00
3d9a180c12 Implement local memory path for all devices in buffer
Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-05 15:01:58 +01:00
4d2750161d Move OsAgnosticMemoryManager to shared
Resolves: NEO-5188
-move MockGraphicsAllocation to shared

Change-Id: I17e90af48183f003151fab075a46e40d7df3f160
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-02 21:02:53 +01:00
c678f3d9b0 Make DeviceBitfield argument constant
Related-To: NEO-5225

Change-Id: I14a5a4cc3394cd2b58a74bda183c734a0d17ac25
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-10-30 13:45:32 +01:00
2c1551d40d Extend specialQueue in context to StackVec
Related-To: NEO-4589
Change-Id: I92db4cf8511e13a35307a4f48b51041a6fc7330f
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-10-30 13:33:46 +01:00
523887019b Rename debug flag to EnableBlitterForEnqueueOperations
Change-Id: I9ae8dfc1e86a837c600ee9099e936fc4a64c80b1
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2020-10-29 12:00:09 +01:00
30a67618f8 Add DeviceBitfield argument to CSR constructor
Related-To: NEO-5225

Change-Id: I8cf0aef3ec16314cfb1a787852b6c20ce0f65955
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-10-28 17:10:31 +01:00
b0e055ee3c Debug flag to print blit dispatch details
Change-Id: I1eb033449a49485b459249f634589e546492d99f
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-10-26 16:00:38 +01:00
0f31b5cc8b Use StackVec in Buffer::create instead of std::map
Related-To: NEO-4589
Change-Id: I9aa3a5de7e4e86b85c4589901a81a5b9633fc23f
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-10-22 13:31:21 +02:00
f7dcafc295 Pass ClDeviceVector to Program's ctor
Related-To: NEO-5001
Change-Id: Ie0e4395fd3ed9a5df81c7075ef039092a0687b9c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-10-19 18:47:11 +02:00
babbb1224f Minor cleanup in buffer ULTs
Change-Id: I5004cbcb7b001a878de96449457bf43db1b23164
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-10-16 09:15:04 +02:00
3ac197e400 Create graphicsAllocation for all devices in buffer
Related-To: NEO-4589
Change-Id: Ic9625eb3c9c359fd4cc5afe3519e7acf4efb0081
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-10-14 16:05:53 +02:00
0c3d430f50 W/A for disabling RCC RHWO for compressed media surfaces on gen12lp
Whenever media compressed surface is used, the RCC Read-Hit-Write optimization
disable bit (14) has to be set in Common Slice Chicken1 register (7010h).

Related-To: NEO-4982

Change-Id: I71b91b52692252459da05b737838eb4854575974
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2020-10-13 11:52:15 +02:00
bdf8c5fc90 Extend UnifiedMemoryProperties constructor to take device bitfield
Related-To: NEO-4722

Change-Id: Ice185f1792635922e9bb89cd7329e6501bc585e0
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-10-06 16:35:08 +02:00
89be51cd94 Update CL_MEM_FORCE_HOST_MEMORY_INTEL flag
Rename CL_MEM_FORCE_SHARED_PHYSICAL_MEMORY_INTEL to
CL_MEM_FORCE_HOST_MEMORY_INTEL.
Rename MemoryFlags::forceSharedPhysicalMemory to MemoryFlags::forceHostMemory.

Change-Id: I48c0ae958ff55f2aef71cf99ed274d021a3c1f19
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-10-05 20:33:35 +02:00
214342f405 Create map for deviceBitfields per rootDeviceIndex
Pass rootDeviceIndex to getDeviceBitfieldForAllocation

Related-To: NEO-4589
Change-Id: Ib325a8bf822351ba36b225d94d4173fd725e8766
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-09-29 12:18:49 +02:00
28acc2c8f6 Remove lowPriorityEngineType member
Change-Id: I39908addf1c3a12f7807479132d0a6d5a4398d7b
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-28 17:02:56 +02:00
ef88aed3fa ULT renaming: Zero Copy tests
Related-To: NEO-2236

Change-Id: I09caa6de2ab69366954933e5788d72554e01b84e
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-24 13:07:23 +02:00
3120d9dbd3 ULT renaming: Packed YUV Image tests
Related-To: NEO-2236

Change-Id: Ib7942d8e1fbb7dc8672b485aeb5b4c5ab0f2a2cf
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-24 12:46:22 +02:00
5b31b31734 Remove low priority and internal engine index variables
Change-Id: I984dbcedd5456cfdee284f4d2eda1371ba77f0d0
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-21 16:44:14 +02:00
e6a4aa1216 ULT renaming: Image Format tests
Related-To: NEO-2236

Change-Id: I3275e7bdadc591f7f27987118c340088b6f0f48d
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-21 16:29:08 +02:00
9273a0c532 ULT renaming: Tiled Image tests
Related-To: NEO-2236

Change-Id: I88c8d9074f9ee38dee2dd72eda32dfc6dd19d151
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-21 16:18:26 +02:00
912af26602 Add support for async destruction of map allocations
- map allocations with CL_MEM_USE_HOST_PTR are still destroyed in place
- map allocations are additionally checked for completion on all os contexts

Related-To: NEO-5073

Change-Id: I6198ff76704a03412ef648503df8e70fee4bd3be
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-09-21 07:45:59 +02:00
c381f371cd Use BCS to copy ISA if required
Change-Id: I181e09d0356718c25162efdddede39b13399ed3b
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-17 10:34:06 +02:00
9ea0624c89 ULT renaming: Image Array Size tests
Related-To: NEO-2236

Change-Id: I6e1024a17ae37a491ee77313c3e066c3a6933ce1
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-15 20:19:11 +02:00
b25128c3d2 ULT renaming: Image 2D tests
Related-To: NEO-2236

Change-Id: Id68475ed1f4c5ef6fbd471478422583a7e407005
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-15 19:34:44 +02:00
9b63e8ef49 ULT renaming: Image 1D tests
Related-To: NEO-2236

Change-Id: Iadd9103eca65033924983273a0c9073dddba9814
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-15 08:59:28 +02:00
a67a5b2a76 ULT renaming: Buffer tests 2/2
Related-To: NEO-2236

Change-Id: I1de73bb68b1d5dc13c36b947b4ca82db6fe80143
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-14 14:52:00 +02:00
609d1336e1 ULT renaming: Create Image tests
Related-To: NEO-2236

Change-Id: Ic106bcadd6beaa5eca02ce850a5f32d68ae0f004
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-14 13:12:06 +02:00
7d506e3608 Add debug flag to enable compression in L0 USM allocations
Related-To: NEO-5069

Change-Id: Icbfeb8d72cd764bb3c90d5c699998455f81dd3ee
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-09-14 12:47:33 +02:00
dfd6712c6e ULT renaming: Buffer tests
Related-To: NEO-2236

Change-Id: I4c99582c5af55cfafe9ea2ad8b8e6d3485bbdb83
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-09-14 10:24:39 +02:00
40d487fa90 Add global destructor of platforms
Change-Id: I7f0c9a9a13cae5cbf831e0d4e410c78c001a75d1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-09-01 17:26:17 +02:00
44d1ec2e23 Change L1 cache setup
Related-To: NEO-4942
Change-Id: I9f8c3a5aa4d3dee57595ac287df64d8c9b41a9cb
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-08-20 10:20:40 +02:00
fb821f21f5 Cmake format script
Related-To: NEO-1157

Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
2f4b132722 Use default graphics allocation
Change-Id: Iad369f4cd362ed1330440887dc9b6789dcd0b95d
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-08-19 16:17:18 +02:00
907c767d1e Enable querying if compression is used
Change-Id: If8084a8f0720b93b06dbdd3c6aa6348b2db7a9c6
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-08-18 10:26:37 +02:00