Commit Graph

129 Commits

Author SHA1 Message Date
Mateusz Jablonski 6ef7fc726b Update copyright headers
Change-Id: I05eaad34f5af15685c6ad6d5bb3078f21dd1e0af
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-22 23:44:04 +01:00
kamdiedrich 8f44a95ca0 Changing include paths
Change-Id: I3b878463289083c956382e68da3473788cf5c15f
2020-02-22 18:45:39 +01:00
Mateusz Hoppe daed7cbc00 Move CommandStreamReceiver to core
Change-Id: Id8ed0e680f77b4dd9614f0096c3e6d9a1d04b3d3
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-21 23:13:38 +01:00
Filip Hazubski 553f88ecd8 Move files from common to core
Change-Id: I900e752607ca5b805463895910f5fd3812e1760d
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-21 11:27:28 +01:00
Maciej Plewka b218281488 Dont use context in built ins
Change-Id: Id2af09190edbc1a3bb930210fe340691aa1e4578
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-20 17:20:18 +01:00
Mateusz Hoppe 06ce792b80 Add missing override to derived class dtor
Change-Id: I40f5675e624426b3760dbf7adcddff80c71e96ca
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-20 15:52:09 +01:00
Maciej Dziuban 8ece440625 Fix compilation issue on gcc
Change-Id: I3bdf8d4cc385a9394439409196bd7bc0e9060de3
2020-02-20 12:10:21 +01:00
Zbigniew Zdanowicz 647ee40f0c Create direct submission base functionality
Change-Id: I9186aae81215c106629e9a9cfa6eb336463b3190
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-19 13:43:33 +01:00
Mateusz Hoppe a2ffa9d94b Move flat batch buffer helper to core
Change-Id: I872ab702aaeed3f309a242390ea289b5de5f8892
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-19 12:33:44 +01:00
Mateusz Jablonski bbb8332e2e ULT: remove numPlatformDevices
Change-Id: I23c2a22e7df2451c16ed3736690fddc9a334391e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-18 16:06:53 +01:00
Jobczyk, Lukasz ad21b7672e Use hwInfo from root device environment [1/N]
Related-To: NEO-3857

Change-Id: I270e53fb5334c39d41d38b4d2a75c7a3cd05aa56
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-02-18 12:16:04 +01:00
Zbigniew Zdanowicz d48998946c Fix sporadic fail in ULTs.
Change-Id: I5d8bf5e0414ae4127b24c1e89b631484ddaed7f2
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-18 10:42:12 +01:00
Maciej Dziuban 9f6d85898f Program depthStencilResource field
Change-Id: I0797d763e849fd2a7381cf2bf18fcbd739e8a6af
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-02-18 09:59:57 +01:00
Milczarek, Slawomir 4420fe34ba Changed class name from PipeControlHelper to MemorySynchronizationCommands
Related-To: NEO-4227

Change-Id: Iff59ea5b274fbba3af1dab2ac188f7370cc1e44f
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-02-17 16:20:27 +01:00
kamdiedrich 27c2242576 Move programminng image surface state to core folder [5/n]
Change-Id: I062e3367b6398af6198847c80113a6c2aea2bb73
2020-02-17 09:55:29 +01:00
Zbigniew Zdanowicz 9b8b49e4cd Add new function to Wddm mocks
Change-Id: I2a7c368475752009ae042aa9b5f07c2df9f1b5b8
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-02-17 09:05:55 +01:00
kamdiedrich 31c8451adc Move programinng image surface state to core folder [4/n]
Change-Id: I66ff8deac365f2183e4b780f3e1927e80c5abb92
2020-02-15 20:34:55 +01:00
kamdiedrich 8e2e1ef374 Move programming image surface state to core folder [3/n]
Change-Id: I383ce0797dfae1a5ee2bc49e6d9b885ef6787379
2020-02-13 00:12:03 +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
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
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
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
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
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
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
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
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
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
Maciej Plewka 748ec736f2 Use PipeControlHelper in Encoders
Change-Id: Ib647aa4dc0be2ec3a8ddab9c73829cbc47f4f1e5
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-03 17:19:59 +01:00
Mateusz Jablonski 0e3ab96298 Move compiler extensions to cl device
Related-To: NEO-4207
Change-Id: Ia220085260fbafb062e0e0aedca863eb64b079bd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-01-31 14:11:05 +01:00
Jaroslaw Chodor 33ac782f03 Allow empty kernel arg info
Change-Id: I0e45e342148dfb4dceca1e7fdba885280e4ab597
2020-01-29 17:58:22 +01:00
Maciej Plewka 8b53126102 Add batch buffer start/end encoder
Change-Id: Id959f9692f0f23cb1c2c8a12a51a031e39019351
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-01-29 14:50:59 +01:00
Dunajski, Bartosz be35d16003 Fix compilation issue
Change-Id: Ib7cbdfe813c14cd317845fbe828ecb1875478f0b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2020-01-28 10:12:30 +01:00