Commit Graph

1770 Commits

Author SHA1 Message Date
Zbigniew Zdanowicz
e2906fcdf1 Move interlockedMax to core helpers
Change-Id: I5496ea963e68e0ef1e107c860112b7123d38aa81
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-05-28 17:38:17 +02:00
Maciej Dziuban
ce406c34f8 Add missing line in CMake
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Change-Id: Id8ceb2b5f2e9488995259a436e798991aebd7f8a
Related-To: NEO-3016
2019-05-28 16:23:10 +02:00
Mateusz Jablonski
bb2defacf4 Rename preferredGpuAddress -> reservedGpuVirtualAddress
Use reservedSizeForGpuVirtualAddress for freeGpuVirtualAddress call

Related-To: NEO-2881

Change-Id: Ieafa6ad33f3f9922cbfa414c7f40b4f3a28e7fc5
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-05-28 14:55:44 +02:00
Maciej Dziuban
d10ec9944c Check support for SetUp and TearDown in HWCMDTEST_P
Change-Id: I597e6d68daaf790d63d1e3948b8c66831a483cc4
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-05-27 17:10:44 +02:00
Maciej Dziuban
1cee6fedb8 Add missing expects in test_sample tests
Change-Id: I076c2a2f6e8faf7a68d4db0d9284ef2257a69309
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-05-27 15:05:16 +02:00
Mrozek, Michal
edb78834cb Move allocateGraphicsMemoryInDevicePool to Os Agnostic memory manager.
Change-Id: Ica179986f401b99e61c3485d549790489cbb1fd5
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-05-25 02:12:16 +02:00
Maciej Dziuban
8ad2adf1ad Check support for SetUp and TearDown in HWCMDTEST_F
Change-Id: I5f4120b4b74ba2dd665566216ff6c55177b3a735
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-05-24 16:21:23 +02:00
Milczarek, Slawomir
583d4d4c6c Add clearAllDependencies parameter to obtainNewTimestampPacketNodes
The capability to clear Timestamp packet dependencies from command queue.

Related-To: NEO-2747

Change-Id: Id3812539a47b96e23d0b8b17b9b8f54878ee2ef2
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-24 12:29:49 +02:00
Maciej Plewka
f2a8fc7ea9 Print_formatter refactor
Change-Id: Icb03697281b009c853d91a63d5d21ffcde545a8f
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-05-23 21:37:50 +02:00
Zbigniew Zdanowicz
52dc359511 Return zero as scratch required GSBA when no scratch allocation present
Change-Id: Idc59b6d0193b7310d9330432df8ccf300a93a912
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-05-23 11:41:19 +02:00
Pawel Wilma
b64210d3db Add local memory usage selector in memory manager
Related-To: NEO-2906

Change-Id: I3172e9551b8d06437c273b122dc6e9d529155b5c
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-05-23 11:05:36 +02:00
Koska, Andrzej
3d3e6b9531 Testing enqueueSVMMemcpy with host pointer
Related-To: NEO-3011
Change-Id: I179089e078361dd2449f78e75f1d6edd3f5235de
Signed-off-by: Koska, Andrzej <andrzej.koska@intel.com>
2019-05-23 09:47:29 +02:00
Zbigniew Zdanowicz
7390e456a4 Add getter of Scratch Controller to the CommandStreamReceiver class
Change-Id: Iba0a9d7e4a9f141e1e31de428d50e7c745ad993a
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-05-21 17:25:05 +02:00
Dunajski, Bartosz
b82cdd6b8e Program MI_SEMAPHORE_WAIT for dependencies during blit operations
Change-Id: I8b0e467886bfb23d026a0c13be514343a22a20a1
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-21 14:18:16 +02:00
Marcin Naczk
ce8d24d124 Add multi command line option for ocloc
- now ocloc is able to make multi build, all options and parameters
of build are listed in separate .txt file, each line in this file
is new build.

Change-Id: Id74af826e8c1a4fe14c46ed6024efe2041a22fd0
Signed-off-by: Marcin Naczk <marcin.naczk@intel.com>
2019-05-20 16:02:20 +02:00
Filip Hazubski
2d02435fb9 Add DeviceHelper::getEnginesCount() function
Related-To: NEO-2535

Change-Id: Ie82f5b573d934e038dc44853d0bba5bbd5db3551
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-05-20 15:26:48 +02:00
Zbigniew Zdanowicz
77ce18ad35 Simplify code for Front End programming
Change-Id: I1f6e1f4f6eef24c8018c54ae1b7f6ec67adb55b3
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-05-20 09:42:07 +02:00
Koska, Andrzej
fa3d4f39f4 Enabling clEnqueueSVMMemcpy between SVM and host pointer
Related-To: NEO-3011
Change-Id: I89aad599d7238ea2d319a4b1c72dffea2dba952b
Signed-off-by: Koska, Andrzej <andrzej.koska@intel.com>
2019-05-20 09:10:56 +02:00
Milczarek, Slawomir
6ed20ab762 Add mutex to AUB subcapture manager
Related-To: NEO-2747

Change-Id: I11a2fdb54f832607b7cff5d99dfd943aa0842748
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-17 16:48:56 +02:00
Hoppe, Mateusz
432e41c07f Remove printing SKIPPED tests from output
Related-To: NEO-3173

Change-Id: I0dc44f69c7c4a988065bcc62db78087e9fc50e2c
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-17 11:30:04 +02:00
Hoppe, Mateusz
d15174d7c5 Block SVMAllocsManager creation in Context when SVM is not supported
- skip SVM tests when SVM is not supported

Related-To: NEO-3157

Change-Id: Ie5d5ef4778749f60537084fc7f388714954a4873
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-17 08:59:00 +02:00
Katarzyna Cencelewska
9217b80b42 Change order of if in kernel initialize
Change-Id: I585addeaa5bc32a869a1b433bf80a918a79269a9
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2019-05-16 22:32:18 +02:00
Dunajski, Bartosz
4f4ef14b9b Accept different copy directions during blit operations
Change-Id: Idb59458b46337ca0095056857dbd75bf116b6723
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-16 18:53:30 +02:00
Zdunowski, Piotr
bfea41c85b Revert change to image alignment performance hint.
This reverts commit 1262b67e17.

Change-Id: I0935c43e065e4543ad70a6178ceb3773d6c8a65b
Related-To: NEO-2366
Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
2019-05-15 14:58:17 +02:00
Hoppe, Mateusz
4d9db473a0 Skip ZeroSizeEnqueueHandlerTest SVM tests when ftrSVM == false
Related-To: NEO-3157

Change-Id: I807dbe8a71faff6df5244a43a6451b00eb5a02c3
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-15 11:12:32 +02:00
Mateusz Jablonski
b8fb5e683b Move basic_math.h and vec.h to core directory
Change-Id: I143b7af450ff48d4958b4bc7137b393a2dc0eb64
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-05-14 21:32:55 +02:00
Filip Hazubski
8f17c70e9e Remove CommandQueueHw::requiresCacheFlushAfterWalkerBasedOnProperties
Change-Id: Ibdc6f7b883bfef471926a4351ed7437173c4a6a6
Related-To: NEO-2535
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-05-14 17:31:53 +02:00
Zdunowski, Piotr
1262b67e17 Image alignment performance hint should report the same values it checks.
Related-To: NEO-2366

Change-Id: I0bbbd4bbe2940ef89fdc9cadcf1d3894ca4fb5ad
Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
2019-05-14 16:29:24 +02:00
Hoppe, Mateusz
d7cbc6c99c Print skipped tests as SKIPPED in custom listener
Related-To: NEO-3173

Change-Id: Id6f8647e3c774baa88595a5d8efa8c1af194e32c
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-14 15:03:09 +02:00
Milczarek, Slawomir
561c6394be Add options to specify buffer and image dump formats to AUB unit tests
Related-To: NEO-3080

Change-Id: I23a310167b7fb06a7a85c0b5fed233f8050b28f2
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-14 14:27:53 +02:00
Hoppe, Mateusz
501bc88368 Do not run SVMMemoryAllocator tests if SVM not supported
Skip tests:
- SVMMemoryAllocatorTest
- SVMLocalMemoryAllocatorTest

Related-To: NEO-3157

Change-Id: I3f14f71ec3cccaa1925423527cd6bc7ab018f8c5
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-14 12:52:21 +02:00
Hoppe, Mateusz
2b09ed85d6 Run EnqueueSvmMemFillTest only when SVM is supported
Related-To: NEO-3157

Change-Id: I29d1a0bd99cef4644c31d896ff2dfe96a5fee81c
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-14 12:24:45 +02:00
Hoppe, Mateusz
f6dfa1ac9d Skip EnqueueSvmTest / EnqueueSvmTestLocalMemory when SVM unavailable
Related-To: NEO-3157

Change-Id: Icc1b2f4be099f4295c441a9042a004b314fef0b0
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-13 14:14:59 +02:00
Hoppe, Mateusz
c86d9f4bd5 Detect memory leaks only for tests that PASSED
- with this change GTEST_SKIP() can be used without
false-positive leak detections

Related-To: NEO-3173

Change-Id: If12ccb7a6f21811c9966638db93f097cab928b66
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-13 14:02:20 +02:00
Piotr Fusik
7b9402b646 Add EngineInfo for Linux.
Related-To: NEO-3008

Change-Id: Ib9e1a241a5b47aad5e4f83443a3e85db826d13ff
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-05-13 10:06:54 +02:00
Milczarek, Slawomir
972a79aaae Reduced a scope of the lock for AUB file stream
Related-To: NEO-2747

Change-Id: Ic164900f5898df35af74ccff9c31f8296dcf12fd
2019-05-13 08:50:04 +02:00
Dunajski, Bartosz
95bd4bae67 Change EXPECT_TRUE to EXPECT_EQ
Change-Id: I44a6b8318ed3188138287d9571eb2784d073978b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-10 17:01:35 +02:00
Dunajski, Bartosz
a3ad3b9fa2 Clean temporary allocations after Blit operation
Change-Id: I5c9b6778c93c7422bb84ee367dbf298df5e06cab
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-10 14:55:27 +02:00
Milczarek, Slawomir
cc6a94b5b6 Fixed TBX with AUB dump mode without AubStream
Related-To: NEO-3150

Change-Id: I9ee7fc3c44f3021c61db7c27c01522cbe7d7445d
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-10 14:23:17 +02:00
Hoppe, Mateusz
97245a2ca6 Refactor MemoryManager::allocateGraphicsMemoryInDevicePool
- create MemoryAllocation for OsAgnosticMemoryManager so that
freeGraphicsMemory is freeing correct object type
- other memory managers do not go this path

Change-Id: If2ada9b77bb4a41d09f82b79502594e0eda9f11b
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-10 13:14:08 +02:00
Hoppe, Mateusz
eefb2bb488 SVM buffer tests: setup hwInfo with 48 bit gpu address space
- to use SVM, proper GPU address space is needed

Change-Id: I01f217fd4af958fd6c1e306d4d9146253163eb0e
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
2019-05-10 12:15:05 +02:00
Dunajski, Bartosz
67d39b19db Add pitch programming to Blit dispatch and align max width to cacheline
Change-Id: I37a15ddc64c9e41cd4cd718133b17d572bb71ba2
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 16:08:06 +02:00
Dunajski, Bartosz
0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
Dunajski, Bartosz
de988d067c Fix ExecutionEnvironment test and rename hwInfoHelper to hardwareInfo
Change-Id: I849b9f5a9f449f063e5717ea9758e80c6662c5a5
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 08:53:24 +02:00
Dunajski, Bartosz
bb80d327c7 Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 16:11:01 +02:00
Dunajski, Bartosz
b2aee82f41 Add cmake flag to disable PCH on Windows
Change-Id: Idcdb7e642fd4a92a21fee9b7b801488e26a6038a
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 14:00:32 +02:00
Milczarek, Slawomir
6c8b14c918 OmitTimestampPacketDependencies to omit node dependency in timestamp packet
Makes subcapture feature work with timestamp packet enabled.

Related-To: NEO-2747

Change-Id: Ifa45f1c066129671a02dc708b537b285f5a05d7f
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-07 16:05:00 +02:00
Mrozek, Michal
bc35cd250a Do not use max power saving mode in VA sharing scenarios.
-This can be achieved by passing CL_QUEUE_THROTTLE_LOW_KHR as throttle hint
to command queue.
- This gives much better control about the granularity of this feature
instead of triggering this for the whole context user may still have
power saving mode queues.

Change-Id: I066729f963119ddc1f62ad2785c342af2fea588e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-05-07 15:23:13 +02:00
Mateusz Jablonski
cadc461712 Create storage info while getting allocation data
Related-To: NEO-3127

Change-Id: I716a1d5624cf34d74bafd8c9ab3f5cc5ded43275
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-05-07 14:17:34 +02:00
Milczarek, Slawomir
10d87404b6 AUB with kernel names in case of kernel split
Related-To: NEO-2747

Change-Id: I49d3e4716db4634da6744fe91ecfb0763f67722a
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-05-07 10:14:32 +02:00