Commit Graph

1720 Commits

Author SHA1 Message Date
Jobczyk, Lukasz
5cde27ed03 Add clSetProgramSpecializationConstant to dispatch table
Related-To: NEO-2260

Change-Id: I5164939688764effff64b4f7dcbe3a50e0fc794a
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-07-01 10:25:21 +02:00
Krzysztof Gibala
407c0213f1 Add clGetMemAllocInfoIntel
Related-To: NEO-3317
Change-Id: If46be932e170d45793fe143ebb54fcfb0cda9ccc
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2019-07-01 09:45:31 +02:00
Milczarek, Slawomir
2e7696121b freeGraphicsMemory to call freeGpuAddressRange on gfx partition
Related-To: NEO-2687

Change-Id: Id4ded6f5b443fb30c795cb8fab4bedda2fd66469
2019-06-28 15:38:29 +02:00
Mateusz Jablonski
91858d89d8 Add missing cleanup of private scratch allocation
Related-To: NEO-3190

Change-Id: I7b327c76cf62fab50d11ad06dcc067e92c650815
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-28 14:53:59 +02:00
Mateusz Jablonski
27f3f8ea8f Pass private scratch size to scratch space controller
Related-To: NEO-3190

Change-Id: I6f1e71481679492516d898226de6a1e721896e81
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-28 14:32:06 +02:00
Mateusz Jablonski
223b998d92 Handle PATCH_TOKEN_MEDIA_VFE_STATE_SLOT1 patch token
Related-To: NEO-3190

Change-Id: I3e357f7e21a58e5bd2aa8cb8005b720c690664f2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-28 01:48:50 +02:00
Dunajski, Bartosz
56e77ca452 Add BlitProperties to simplify properties passing
Change-Id: I4abf99d420487a237e5b465b9d4d121121f45a84
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-06-27 16:31:40 +02:00
Mateusz Jablonski
373dd2021b Add private scratch space allocation to scratch space controller
Related-To: NEO-3190

Change-Id: I8100bb1db99700c2aac487e443a872f56c887dd1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-27 15:57:20 +02:00
Dunajski, Bartosz
da09c70e8c Remove not used parameter
Change-Id: Ieef5a0da66a91075b682e917def3578cf48b0bbe
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-06-27 13:58:18 +02:00
Dunajski, Bartosz
8d4791143b Change postSyncAddress offset for cache flush
Change-Id: I6cc557888e46e4a1c1ff495ddd2a3f9b6e264a21
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-06-27 11:42:52 +02:00
Kamil Kopryk
0a59476cb9 clGetDeviceInfo support unified memory 1/n
Change-Id: Iebb7f9f81ebfef8382ef12783356127f27ea3fc3
Related-To: NEO-3344
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2019-06-27 11:19:51 +02:00
Zbigniew Zdanowicz
9bcec32ef4 Add new LinearStream ctor
Change-Id: I8c77f90306d9ab27b42cc331bbfce6258bca4a3b
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-06-27 09:59:49 +02:00
Mrozek, Michal
840d81c9fc Do not initiate limited range allocator if range above max64 bit address.
Change-Id: If7b0a83c5e5326f2b16d32533d8631ff6ff877cc
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-26 11:43:24 +02:00
Mrozek, Michal
1bc5f7b142 Ensure that events without commands have proper flush stamps.
Change-Id: I937efef7f87fa7df9e9b1a903269e3637eca73ad
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-26 09:08:58 +02:00
Adam Cetnerowski
eb3e6efaf1 Correct GetPlatformIDs error when platform fails to initialize
Change-Id: Icb25cd2924aa406c08af9d47a1002ba6d23724f7
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-06-26 09:01:04 +02:00
Mateusz Jablonski
9e9e7ab61f Correct memory banks passed to hardware contexts
Related-To: NEO-2881

Change-Id: I60d4a649c1ab3db634c56792e407bb318831de1b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-25 22:46:36 +02:00
Dunajski, Bartosz
8263d488c6 Submit Semaphore dependency for enqueue read/write without Kernel
Change-Id: I22e1743b4cbd6e8285527fdfe25424a6cb3ff462
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-06-25 14:21:57 +02:00
Venevtsev, Igor
165d1e4e55 Use GfxPartition for GPU address range allocations
[2/n] - OsAgnosticMemoryManager

Related-To: NEO-2877

Change-Id: I887126362381ac960608a2150fae211631d3cd5b
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-06-25 12:54:20 +02:00
Dunajski, Bartosz
bb6dfd4fe6 Add debug flag to disable aux translation
Change-Id: I1f3a2941de44e9fe793ef3f1c6425c80293cc63a
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-06-25 12:03:52 +02:00
Mrozek, Michal
7d3e8f32c8 [12/n] Unified Shared Memory.
- Wire in support for clEnqueueMemsetINTEL.

Related-To: NEO-3148

Change-Id: I50f636e8e0029a154b6a6c7cd46385e92f8d4d7f
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-24 18:14:29 +02:00
Artur Harasimiuk
5dbf8f7b8d cmake: adding EXCLUDE_FROM_ALL to intermediate libraries
These targets should be built on demand when another target requires
this or explicitly requested. This applies to STATIC and OBJECT
libraries.

Change-Id: Ia0eb4e803b09c0ce594fd348ad53c10cdf5b3a9f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-06-24 17:11:01 +02:00
Mrozek, Michal
e6930c4769 [11/n] Unified Shared Memory
-wire in support for clEnqueueMemcpyINTEL

Related-To: NEO-3148

Change-Id: I3aa758d288fe5b0fd38d25e28d69ae0017ff8730
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-24 16:46:25 +02:00
Mrozek, Michal
37e4bca788 [10/n] Unified Shared Memory.
- Wire in support for clDeviceMemAllocINTEL
- Wire in support for clSharedMemAllocINTEL
- Wire in support for clSetKernelArgMemPointerINTEL

Related-To: NEO-3148

Change-Id: I9e182beb6f4dda3adfc0f2f23ffd129640ebd73c
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-24 10:03:25 +02:00
Mateusz Jablonski
30a534a4e4 Use GPU address when patching pipe
Change-Id: I4e4ca7ab2597fa97aa8cd1229382187974b22dde
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-21 16:48:07 +02:00
Mateusz Jablonski
3c1c4cf695 Update GMM API related to page table manager
Resolves: NEO-3155

Change-Id: I44a544a4ecd06e5769995eb1f67948ebb10a2cb5
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-21 15:36:39 +02:00
Mateusz Jablonski
7a3b2e583b Use GPU pointer when programming constant/global surfaces
Related-To: NEO-3127

Change-Id: I29fd5e3f3f370c21a20f403f66c0a3604be884fd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-21 14:20:22 +02:00
Dunajski, Bartosz
be7087ec66 Obtain completionStamp from enqueueCommandWithoutKernel
Change-Id: I045d4acc37a3c1d7376eaf87b1ed163c968f1266
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-06-21 14:10:26 +02:00
Mateusz Hoppe
50bedb75b2 Add override to SchedulerKernel destructor
Change-Id: Icf1d07dc3f0e9a4595093887995fd1f4c24b6f21
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-06-21 09:40:17 +02:00
Mrozek, Michal
0758661c52 [9/n] Unified Shared Memory
- Wire in support for clMemFreeINTEL.

Related-To: NEO-3148

Change-Id: Ibef61b7d9bdfa3021533faa0019b6b443145f1be
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-19 16:06:52 +02:00
Kamil Kopryk
72841e36c2 Add clCreateImageWithPropertiesINTEL API
Related-To: NEO-3147
Change-Id: I4a8a9d73fe75e0680226fbd0625342f639ddd201
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2019-06-19 15:51:22 +02:00
Filip Hazubski
a9b8c07293 Update enqueueKernel
Return CL_INVALID_GLOBAL_WORK_SIZE error if global_work_size contains 0 for
OpenCL older than 2.1
Do not throw exception if global_work_size contains 0

Related-To: NEO-3111

Change-Id: If7b7884465117d9c0615ace2bb682b3b1c7d8bdb
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-06-19 15:28:39 +02:00
Mrozek, Michal
3595e6e046 [8/n] Unified Shared Memory.
-Wire in host allocations API.

Related-To: NEO-3148

Change-Id: If7213a7c90a35aebb530e2b4d14413138cd84297
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-19 14:21:15 +02:00
Mateusz Jablonski
d06fcc8599 Dont force system memory for pipe and global surface
Related-To: NEO-3127

Change-Id: Iffb1b04401a19043bdb898b7896068bc760f4797
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-19 12:46:30 +02:00
Krzysztof Gibala
4eb870af85 Add Unified Shared Memory API
Related-To: NEO-3317
Change-Id: I9e15ac2dab710e6e410ddded04f0be01694a74d7
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2019-06-19 11:49:49 +02:00
Kamil Kopryk
568670c764 Validate and create image using MemoryProperties instead of flags.
Related-To: NEO-3147

Change-Id: I6c1f4383ec4ae1c35399f26ed953f1f20c203cf3
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2019-06-18 15:54:29 +02:00
Dunajski, Bartosz
4b592b2520 Don't take BCS path when Queue is blocked
Change-Id: Ie6faa276ce1173ce075693bc81d1e91d1ace27fc
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-06-18 15:31:53 +02:00
Mrozek, Michal
d6dd229543 Fail create allocation if map is unsuccessful.
- This way we will fail whenever mapping is unsuccessful instead of creating
Graphics Allocation that is in undefined state.

Change-Id: I50358d4564cd3fba0f6d05ab47cbbbaffbd9ce1c
2019-06-18 15:29:56 +02:00
Jobczyk, Lukasz
971eb7a1b4 Add initial implementation of specialization constants
Related-To: NEO-2260

Change-Id: Ib722109039555a028eb4ec0862e9de72342f9730
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-06-18 09:39:32 +02:00
Mrozek, Michal
3a75c4fb71 [7/n] Unified Shared Memory.
- Add basic allocation support for shared allocations
- Add kernel support for shared allocations.

Related-To: NEO-3148

Change-Id: Ie0523acc3a444eef6a5aeb6a56a041280df6a02e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-18 09:17:16 +02:00
Piotr Fusik
57f88ee197 Determine the engine flag while binding the context.
Related-To: NEO-3008

Change-Id: Id2a9a210ca3a611b6663d43f1442b26cfccddb10
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-06-18 08:32:49 +02:00
Mrozek, Michal
e279804c0c [6/n] Unified Shared Memory
- Move definitions to core folder.
- Add tests for core related code.

Change-Id: I9ae0473f965ba56cbe2f5458160b8a24d06595ae
Related-To: NEO-3148
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-18 07:18:18 +02:00
Dunajski, Bartosz
a2398e193b Pass Blocking enqueue flag to Blit CSR
Change-Id: I2dcdd27eef338d3aca60a273bce15e5382673a93
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-06-17 16:33:16 +02:00
Mrozek, Michal
2e8e625024 [5/n] Unified Shared Memory
- Add kernel support for host um allocations
- During make resident call choose only appropriate resources for residency
- change resource types to binary bit friendly values
- enhance memory manager to only make resident compatible types

Related-To: NEO-3148

Change-Id: Ic711a4425a0d8db151a335e0357440312dc09b7e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-17 15:47:30 +02:00
Mrozek, Michal
dd0d81672b [4/n] Unified Shared Memory
- Add allocation logic for host allocation.

Change-Id: Ic250b2165a050bbff7dea1b33b904d6d66cf8113
Related-To: NEO-3148
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-17 12:40:37 +02:00
Dunajski, Bartosz
3e88907201 Enqueue Read/Write operations with blitter
- Program dependencies from Event and IOQ
- Obtain new TimestampPacket
- Update output TimestampPacket if needed

Change-Id: I4ad020f5c5b05ceca8b096fafe1257523e2bc343
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-06-17 12:01:37 +02:00
Zdunowski, Piotr
4f9840246f Dynamically read timestamp resolution on Linux.
Related-To: NEO-2492
Change-Id: Ic76815496289ccecd8a76484e417e71b78b04932
Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
2019-06-14 15:39:25 +02:00
Milczarek, Slawomir
474c25eca6 HostPtr allocation with life time of buffer object for CL_MEM_USE_HOST_PTR
Related-To: NEO-3231

Change-Id: Ic112819c793482844aa712b4a8a1827ec9408812
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-06-14 15:17:01 +02:00
Mrozek, Michal
a5c4956bbd [3/n] Unified Shared Memory
- Add vector of UM allocations to kernel that will be accessed indirectly
- Wire in support to clSetKernelExecInfo

Change-Id: I5858f2a93ab957597f3131022daee3741c3453ab
Related-To: NEO-3148
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-14 15:05:39 +02:00
Milczarek, Slawomir
5956164451 AubManager to call freeMemory upon cleaning osHandles of host ptr storage
Related-To: NEO-3231

Change-Id: I028a5985f1bdffebd673f4b5fead1a314d773b6d
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-06-14 10:30:56 +02:00
Mrozek, Michal
be48b56732 Kernel refactor.
- Change function names to indicate they work on SVM allocations.
- Remove one function used only in tests.

Change-Id: I9b18d9fee3d4f2a46a7f458ca73d39b3863ce6d3
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-14 10:27:21 +02:00