Commit Graph

100 Commits

Author SHA1 Message Date
81cd28e0f4 Add Math::divideAndRoundUp helper function
Add usage of the function where applicable

Change-Id: I9c41ad37009d1f088fa1917d30525194a10d3061
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-10-09 13:25:39 +02:00
4dd1155be6 Map allocation support for blit operations
Change-Id: Iff1b972b2a46610f9690c3412d00b994691e6e28
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
2019-09-18 19:32:43 +02:00
115070767c Move graphics_allocation to core folder
Change-Id: I16b8dbb57c2a40126826a232332c18ba9f563220
2019-09-18 05:26:55 +02:00
9c200530c8 Remove not needed inclusions of device.h
Change-Id: Idfd8122592f58539a569143146443c08a18dace9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-09-09 15:05:29 +02:00
882a216688 Move Debug helpers to the core dir
Related-To: NEO-3677

Change-Id: I2c98595190fadfa8ffd9e378e774c0d4485cbf9e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-05 16:00:35 +02:00
76fe09c2a9 Handle page faults while accessing unified memory
Related-To: NEO-3330

Change-Id: I7e21f894e9d1c82598954c49342d1f65af07498f
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-04 13:28:53 +02:00
7749f28f70 Remove not needed methods from Device.
Change-Id: I179089a4b248ba1ebd6502e001fda18238c4767b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-08-27 09:07:10 +02:00
aeb84b3e20 y-tiling interface cleanup
Change-Id: If7e5ab7135eaa71d9215c87c2fc46188ffd42b02
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-08-26 15:00:26 +02:00
1518774fe6 Use stateful args programming for aux translation kernels.
Set valid mocs values

Change-Id: I8de2bbdd72b102a1623b9e397485ef52ecca8306
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-08-14 14:52:46 +02:00
e3deda9b67 Always add dcFlush before aux translation kernels
Change-Id: I4a9b0ec21365cc19532be74c9dc44d68c8fa0bfe
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-08-13 09:08:36 +02:00
06d14cdcae Checking builtinParams passed to Multidispatch
Change-Id: Idb6c30dc5bb46403cea12acbf5174c6d9ddfbd3e
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2019-07-30 08:21:13 +02:00
55a1ddab39 Keep platform types in a list
Related-To: NEO-3503

Change-Id: I7216d7a5088b0a18aebdedc386208ec398bae5ef
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-07-24 15:15:47 +02:00
f01c1d2d49 Add residency mechanism to OS interface
Change-Id: I323ca856d3c901bdc4d5961cdefa42685b53d4d9
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-07-19 13:35:11 +02:00
ca74489172 Move string.h to core helpers
Change-Id: Ibaaab077ef2867b5e0db3bd215c261de9294063f
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2019-07-19 07:21:00 +02:00
e825dff4a7 Improve registering dispatch method
Change-Id: I66d5cfad8114d64d20d63f6c7b466cc35fa7c1dd
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-07-15 14:27:19 +02:00
ddb0d82e83 Introduce RegisteredMethodDispatcher.
- Inject dispatch methods per DispatchInfo
- Each DispatchInfo in MultiDispatchInfo can have different behaviour
- Implement AuxTranslation programming with new approach

Change-Id: Ie28de0c72a77b8e91509a5b9b8740d72fedf4ad6
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-07-15 11:59:53 +02:00
bb5f6bf4b1 Built-in kernels refactor
Related-To: NEO-3220

Change-Id: I6625539554b56999a6a810e7be8e89435d1aef11
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-07-12 13:17:59 +02:00
da4dd804e2 Remove not used template parameter
Change-Id: I96b4a1827199bf1ef69e77b3612724c969defe1e
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-07-10 08:16:55 +02:00
0a8a77d47c Move enqueue blit logic to enqueueHandler
Change-Id: Ibbad22906387c15243708d37b272601f4734697d
Related-To: NEO-3020
2019-07-08 12:37:06 +02:00
fac8c94c1e Revert "Built-in kernels refactor"
This reverts commit 40b00c7e8a.

Change-Id: I8c13be5134c051272db1fe1b7b15764cf8ad6953
2019-07-04 16:33:01 +02:00
40b00c7e8a Built-in kernels refactor
Related-To: NEO-3220

Change-Id: I4a44a71fe30abd38409de7e9741a3b389b967612
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-07-03 14:58:32 +02:00
711ba1414a Store operation params in MultiDispatchInfo
Change-Id: I519cf84619ca4cdd7c09d351f49832c1ea2b3c82
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-07-03 12:58:55 +02:00
27a0c5a566 Remove not used waitUntilGet parameter from takeOwnership method
Change-Id: Ic76264a87bbe9179f4aeb2ec3f97cdddd8465654
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-07-02 15:41:13 +02:00
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
b98b51b0d9 Move ptr.h to core folder
Change-Id: Icf0db7c767b2b1ea44fccc02b135f0f6c1f78c8f
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2019-05-29 00:11:34 -07:00
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
0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
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
22c2c9b02c Change the size of aux translation transfer.
Change-Id: I9b34babf26eee217c203d0c09d819765a45a9506
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-20 15:45:07 +02:00
501a521120 Do 4 byte transfers for full copy kernel.
- Also utilize mem object allocation size for aux translation.

Change-Id: I117e4d17b2c8e2acc8395381f36f3019d6987314
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-11 15:49:46 +02:00
d4a0c4852b Move EngineType to aub_stream.
Change-Id: Ieaa75aaf4aca4487833754eb38ff709adcbf0f11
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-27 10:06:29 +01:00
9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
047f2bec87 Program correct addresses in EnqueueReadWriteBufferRect scenarios
- SurfaceBaseAddress should be programmed with aligned address
this was not the case for certain origin and region values
- offset from aligned address added to operationParams

Change-Id: I0742b826dd0b70f0a6dedf436b850734fa015688
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-26 10:37:46 +01:00
8b57d28116 clang-format: enable sorting includes
Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-02-27 11:50:07 +01:00
2cb3181359 Remove OCLRT name space from helpers.
Change-Id: Ia33aa7ce93a8f3ee8b2b5609de9ac3e32e206ca1
2019-02-12 09:55:30 +01:00
356259b865 Use .spv as IR extension on Linux
Change-Id: If88dc0a698b02036b48e161fe82c0f594447adb6
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2019-02-11 07:51:33 +01:00
62e56d2398 Disable L3cache when resolve argument
Change-Id: I4bb3a18d67254eef8aa4a0ce6b29401726f0b47e
2019-02-06 15:51:31 +01:00
f6ceb8fb4f Remove default parameters from setArgSvm function.
Change-Id: I4408ddedfca464d56e24c4daa0c8c7b73791d6a0
2019-01-28 12:02:54 +01:00
9d8f280d5c Removing address space qualifiers from literals
Change-Id: Iffdc5a8d98f37a3df930d67c39f771c89b24f47c
2019-01-25 17:25:05 +01:00
e2092d29ff Fix for receiving appropriate tokens during builtin compilation
Change-Id: I5f73bd95bbbd0e2b59dcc85beebd3d1ee205782a
2019-01-17 14:31:29 +01:00
64ff9d30b7 Fixes for misaligned hostPtr enqueueReadWrite
- use getGpuAddress for BuiltinOpParams
- fix read/writeImage

Change-Id: I2e6e9a1d91871fa9f22851f31eb5a7b337b5aecc
2019-01-11 09:14:47 +01:00
73a63c7689 Fix Read/WriteBuffer for unaligned offsets
Change-Id: I08d33e80243f41174f4629c8a611e286629d2e10
2018-12-31 14:50:07 +01:00
b2c1d68a91 Revert "Revert "Revert "Fix Read/WriteBuffer for unaligned offsets"""
This reverts commit f6757c02a4.

Change-Id: I239528e7588dc9766b10a7ce7e517d6b2cdd6375
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-12-21 08:57:45 +01:00
f6757c02a4 Revert "Revert "Fix Read/WriteBuffer for unaligned offsets""
This reverts commit 71f6524197.

Change-Id: I4f31fb6fa14fb5e3b8d8bf0a1745429bcdacd5af
2018-12-20 14:16:07 +01:00
b2e0195663 Change Buffer to MemObj in BufferForAuxTranslation collection
Change-Id: Icbdb8fecaa3fd8e19e993502f59c76156fe4ad2c
2018-12-19 08:05:51 +01:00
71f6524197 Revert "Fix Read/WriteBuffer for unaligned offsets"
This reverts commit 6ea863e440.

Change-Id: Ib58cfe4cffc022b1514c42131914eb2fe64fcbe0
2018-11-27 12:35:03 +01:00
d46969a7f2 Rename offline compiler: cloc -> ocloc
Change-Id: I0595bac4c7266e77bd2ee17588694233547c8315
2018-11-21 13:31:47 +01:00
6ea863e440 Fix Read/WriteBuffer for unaligned offsets
Change-Id: Ia8daff3e95bd724a9f678eb471dbb44a66cc0bc7
2018-11-20 09:25:12 +01:00
4f028d13a1 Command stream receiver: use memory manager from execution environment
Change-Id: I236218a73bd7dac6e5744e3596f146b77b5ca1c8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-16 12:14:55 +02:00
97c56b9de0 cmake: refactor cloc invocation
Change method used to pass options to cloc when compiling scheduler and
precompiled kernels. Instead of plain variable use list() which is more
convenient and flexible when generating build system.

Change-Id: Ieb90defc24a66932250dd610691650880ba1be76
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-16 10:40:46 +02:00