Commit Graph

321 Commits

Author SHA1 Message Date
Milczarek, Slawomir
a0c94405a5 Add synchronization helper function after tag update
Related-To: NEO-4227

Change-Id: Ide6f65dd30d5c832844322be9ccd9c06b32a3371
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-02-12 15:58:58 +01:00
Koska
0c74922797 Add virtual adapter name
Change-Id: I892a9c2cdf6798a7c213be74f1e7b314cdb749c5
Signed-off-by: Koska <andrzej.koska@intel.com>
Related-To: NEO-2614
2020-02-12 15:41:58 +01:00
kamdiedrich
14cc57a078 Move programming surfaceOffsets to core
Change-Id: I1153ba80c3780f498d7faca65f5b9dace1d44897
2020-02-12 14:36:25 +01:00
Maciej Plewka
bde0820662 Add ssh alligment method to encoders
Change-Id: Icdb079a2a71bc98d338d52a20a9fe11e3a3c8407
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-12 14:18:22 +01:00
Dunajski, Bartosz
a0fcde3a4a Use SIMD16 kernels in unit tests
Change-Id: I7caf55fe0cf2a0da3a1f1c30e0ee3d8894dea74d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2020-02-12 10:59:41 +01:00
kamdiedrich
4da8fe050b Create separate file for program image surface state
Change-Id: I0bebc551d6ee95a7b5f46abfdd875b305d54b467
2020-02-11 23:42:16 +01:00
Jobczyk, Lukasz
9d2b25c69b Use CCS if available for internal usage
Related-To: NEO-4231

Change-Id: Ia74b32f50cacc970f247ec3679fd7cee54d1847f
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-02-11 18:51:26 +01:00
Michal Mrozek
545b79cf5f Add blocking version of SVM free.
- Allows to synchronize prior to destruction.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>

Change-Id: I9a3a8a2f87a272f45c4921d8e77c705455576ce0
2020-02-11 18:24:08 +01:00
Zbigniew Zdanowicz
023d49b77c Add new to EncodeSempahore method to program semaphore into command buffer
Change-Id: If23c370f999c75cbc315bc6a328372ec2cc960e2
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-11 18:08:34 +01:00
Aravind Gopalakrishnan
2b0d85d0cd Allow to create command container with custom maxNumAggregateIdds
Allows flexibility to create command containers that do not
require the functionality to aggregate IDDs

Change-Id: I1d01a8280665acb45ddad87c97d48231db87281a
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-02-11 17:53:14 +01:00
Jobczyk, Lukasz
79fd342ad8 Move some device initialization to createDeviceImpl
Change-Id: I10cf5fcc1cd28d4a0272c34637dc5bf187f0c137
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-02-11 11:33:07 +01:00
Konstanty Misiak
6369470b3e Added const qualifiers to GMMHelper's getMOCS
Change-Id: I536837d36c0b8a8ef184af2b95f9832171c5b85c
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-02-11 11:13:36 +01:00
Sebastian Sanchez
f936b3e1cd Fix calculation in encodeGreaterThanPredicate()
encodeGreaterThanPredicate() computes *firstOperand > secondOperand and
stores the result in MI_PREDICATE_RESULT where firstOperand is an
device memory address.

To calculate the "greater than" operation in the device,
(secondOperand - *firstOperand) needs to be used, and if the carry flag
register is set, then (*firstOperand) is greater than secondOperand.

The order of operands in the subtraction (secondOperand - *firstOperand)
in encodeGreaterThanPredicate() is incorrect. Transpose the
operands.

Change-Id: Ie7fee32af338a1a3948abc78cf8332e0be8595ac
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
2020-02-11 10:58:06 +01:00
Sebastian Sanchez
e26e34e70d Store result from ALU SubCarry in a 3rd register
encodeAluSubStoreCarry() stores the result of the operation
in the register used for the first operand. This causes the
result register to be lost in subsequent encodeAluSubStoreCarry()
calls.

Change-Id: I4c972fcf85ef3876622ce6be677534feaf21ef95
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
2020-02-11 10:50:11 +01:00
Milczarek, Slawomir
a1753053ed Blit command size estimates with additional size for synchronization
Related-To: NEO-4227

Change-Id: Id6935bdecee7d3c395c6ae1917706268acb26932
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-02-11 10:13:04 +01:00
Maciej Plewka
df59101dae Create base class for debugger in core
Resolves: NEO-4176

Change-Id: Iba48676fe145538c8213d21d514be38c702525c9
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-11 08:38:48 +01:00
Jaroslaw Chodor
046cb4c28b Adding AR support to ocloc
Related-To: NEO-3920
Change-Id: I6709d48528ab7d18fdd53c3396ff13551cce207b
2020-02-10 22:25:04 +01:00
Zbigniew Zdanowicz
6fe4382b31 Add cache flush operation to PipeControlHelper
Change-Id: Idaf8d88479571a9eb3c62e1b9659267d6274f946
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-10 18:39:02 +01:00
Mrozek, Michal
0ec8bcd0ff Revert "Fix ioctl call for context persistence change"
This reverts commit 916f867685.

Change-Id: I7fd82f0748d02f65de13074ba0bf82187428dcbf
2020-02-10 17:51:37 +01:00
Mateusz Jablonski
77e1ec7818 Setup hardware info in Wddm::init
Related-To: NEO-3691
Change-Id: I7337b3c5213f10ccae49a3f34e31544decf62f8c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-10 17:01:31 +01:00
Jablonski, Mateusz
807586aafd Linux: discover devices in DeviceFactory::getDevices
Related-To: NEO-4208
Change-Id: Ia4405745d1ae22f03ce344a92f2b664ef6e1b957
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-10 15:53:37 +01:00
Kamil Kopryk
916f867685 Fix ioctl call for context persistence change
Change-Id: I2b6048b812abdc00f07d549423901a2b0e85f7ee
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2020-02-10 10:36:17 +01:00
Pawel Wilma
d5a1eee8fa Do not rely on default engine while programming command buffers
Change-Id: Ib341695bf0449a1236b29411e41ab88a5a1e8b94
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2020-02-10 10:26:38 +01:00
Mateusz Jablonski
b5535ec547 Windows: discover devices in DeviceFactory::getDevices
Related-To: NEO-4208

Change-Id: I19a969066b76770a194164bcdf39c7b1ac74c06d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-10 09:59:25 +01:00
Mateusz Jablonski
f24b48bc58 Remove constexpr keyword from HWDeviceId::getFileDescriptor method
Change-Id: I9426c211edfbbca48e0b6c55886f79269e60232f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-10 07:56:54 +01:00
Jaroslaw Chodor
7c5af49e05 Adding support for AR input binary
Related-To: NEO-3920
Change-Id: If11318fd01920016368f4c55aa582e5b09b77c5d
2020-02-09 22:27:13 +01:00
Jaroslaw Chodor
c692502f04 Adding AR encoder/decoder
Related-To: NEO-3920
Change-Id: Ieb35f9ed2853f9f16cb4ab9b3a31959f88bcc2b9
2020-02-09 18:35:56 +01:00
kamdiedrich
f3fc466f5b Move memory_manager to core folder
Change-Id: I8d84d6982fea3cd785f1e15af0ee7fa361258a23
2020-02-08 15:24:13 +01:00
Jaroslaw Chodor
a53e26342a Program refactor
* Decouple binary program handling from Program object
* Add binary formats multiplexer
* Improve Elf format support

Change-Id: Ic22aff40173532e14825d70b82ec53fcc5fa9fdf
2020-02-08 13:03:29 +01:00
Filip Hazubski
cb964f9e72 Update PipeControlHelper
Related-To: NEO-4227

Change-Id: I6565e8e5ea0899ec3416450b14d79250e10c76d7
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-07 13:51:30 -08:00
Zbigniew Zdanowicz
888d2ddeae Unify preemption programming in PreemptionHelper
Change-Id: I70a02ed963c809f1998a56c94169992b1a611450
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-07 17:31:36 +01:00
Filip Hazubski
d023d9ff02 Move core device objects to core
Change-Id: Iab6f00ea5cf2595cebc34c18286a6900b90aef92
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-07 14:35:14 +01:00
Jablonski, Mateusz
018e585eb1 Extract HwDeviceId from Drm
Related-To: NEO-4208
Change-Id: I1678ad92cab2a369769b93da69dc46a1d515f261
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-07 12:11:40 +01:00
Milczarek, Slawomir
8560b2b262 Create dedicated allocation for global fence purposes
Related-To: NEO-3216

Change-Id: I0483a99ea1095c7a10b1318f51569e479386cac4
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-02-07 10:50:47 +01:00
Mateusz Jablonski
5f4f1eb55a Add helper function to detect if hw mode is selected
Related-To: NEO-4208
Change-Id: Iac34e9e9cea36d7ab354d7d5b5c716e8ea3a483d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-07 10:22:51 +01:00
Andrzej Swierczynski
2343cd72c3 Enable E2E compression on linux
Enable feature table and capability table flags for tgllp on linux

Related-To: NEO-2285

Change-Id: Ief6b806bc1d13afbb494c6276d67a8ceeac7209f
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-02-07 10:17:51 +01:00
Mateusz Hoppe
c75721fba9 Attach core files to core library
Change-Id: I12a33aa1bc7784a49367c6f06361104112971aa6
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-06 17:32:41 +01:00
Mateusz Jablonski
938f578e9a Extract HwDeviceId from Wddm
Related-To: NEO-4208
Change-Id: I79f3e9488fbf641dd8237122335b52f5e44c11b9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-06 17:08:16 +01:00
Maciej Plewka
52931156ed Move execution environment to Core
Change-Id: I3f5a1f5ef97f058f91d0be7e3c33df7fff04062e
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-06 15:00:37 +01:00
Mateusz Hoppe
3682e29ddc Move blit_commands_helper files to core
Change-Id: I29fb4e6a91e9fc32f5017eb966d478f51b3b3487
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-06 13:02:59 +01:00
Sebastian Sanchez
f1cd951417 Fix ALU Subtraction Carry and ALU Addition
encodeAluSubStoreCarry() and encodeAluAdd() pass the incorrect
register to save the result of operation; Therefore, the computed
value is lost.

Fix this by transposing desired register flag with final register
to store value.

Change-Id: I55e6bcccf67c9d27a56478287b965ba7b6483765
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
2020-02-05 10:53:59 -08:00
Maciej Plewka
0e2dad1ffb Move device factory to core
Change-Id: Ic98a75ed80fb9556465c9a6c93b1b1a9ba628200
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-05 16:34:14 +01:00
Jobczyk, Lukasz
d810067048 Create dedicated engine for internal usage
Related-To: NEO-4149

Change-Id: I1641866429cfa87b457a808b22917d191c482a7e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-02-05 13:48:04 +01:00
Filip Hazubski
8a6cb1e5ca Add ULT helper functions for PIPE_CONTROL command
Resolves: NEO-4227

Change-Id: I8cca5edc1dd39c22e1f97fc8163f299fd379ad49
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-05 12:21:50 +01:00
Mateusz Jablonski
66754c4849 Remove platformDevices from runtime
Related-To: NEO-4207

Change-Id: I70781b44e7d14360a581808049baf8b61fd1b4e4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-05 09:59:13 +01:00
Mateusz Jablonski
e77ed5f4fa Make platformImpl a vector
Related-To: NEO-4207
Change-Id: I85fa2d5a44160e1cf98321f9835a5173e59e479c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-04 15:29:19 +01:00
kamdiedrich
3691ad1ea0 Move os_interface files to core folder
Change-Id: I03fdd962eac9ebad5dc915adf041c21a2e6affbe
2020-02-04 12:53:56 +01:00
Maciej Plewka
5c4abe1261 Pass Correct Event Address to Kernel Encoder
Change-Id: I6442fe12e5edf243857d3e4e0915832d18923ac5
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-04 12:16:57 +01:00
Mateusz Jablonski
10db7e0328 Refactor variables to modify getDevices func behavior
store them in one struct
expect that global state is restored on test end

Related-To: NEO-4207

Change-Id: Icd1db59598f464a34608290d6023405cf7f246f0
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-04 10:31:48 +01:00
Adam Cetnerowski
1becacf11f ULT renaming: Compiler Interface tests
Related-To: NEO-2236

Change-Id: Iee0dcfa6b30eaa61f0d951ee83da1e84c30e69bf
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-02-04 09:26:41 +01:00