Commit Graph

14 Commits

Author SHA1 Message Date
Sebastian Sanchez 1187eb0375 Fix encodeMulRegVal() calculation
encodeMulRegVal() makes extensive use of encodeAluAdd().

The following problems are addressed:

* encodeAluAdd() performs an addition and saves the
  calculated result to the first register. Saving the
  result to the first register clears the calculated result.

* An array of MI_MATH buffers is setup prior to performing a
  series of encodeAluAdd()'s where the same registers are
  reused for the calculations. For calculated results to be
  carried over from one encodeAluAdd() operation to subsequent
  encodeAluAdd() operations, the MI_MATH buffer needs to be
  setup per encodeAluAdd().

Create EncodeMath<Family>::addition() to reserve a MI_MATH buffer
and performs the addition by calling encodeAluAdd().
Modify encodeAluAdd() to save calculated result to a third
register. Then, after EncodeMath<Family>::addition() is called
in encodeMulRegVal(), copy the calculated result from the result
register to the first register from the EncodeMath<Family>::addition()
operation. This will allow the calculated value to be carried over
to subsequent addition operations.

Change-Id: I9c6f8362a1ca2f7e3361aaa48d8748dd6ff0f4c8
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
2020-02-25 14:13:35 -08:00
Michal Mrozek f320b71091 Improve CPU copy debug flags.
- now setting them to 0 disables cpu copies.

Change-Id: Id850c999a04479092d562e5df6e0de3ece80051c
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2020-02-25 16:57:35 +01:00
Mateusz Jablonski 2c62dadd97 Pass RootDeviceEnvironment to setRenderSurfaceStateForBuffer method
Change-Id: I3d3b9515be7d31aef64c260d0988db357e8122ca
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-25 15:50:18 +01:00
Kamil Kopryk 71468dd11d Add selector for copy engines
Change-Id: I28b11aead8e554b7299ff7f504751847068a2edf
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4320
2020-02-25 14:10:25 +01:00
Mateusz Jablonski 74072d4916 Access GmmHelper and GmmClientContext via RootDeviceEnvironment
Related-To: NEO-3857
Change-Id: Ie9d719c9884fd89580ce3592a0d4d4cd42862f47
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-25 12:32:16 +01:00
Mateusz Hoppe 4a41c9741c Move options_dll file to shared directory
Change-Id: I6a54610741a91aeb902a405bdc0e4ef444106719
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-25 11:47:26 +01:00
Jaroslaw Chodor 915b80b1df Introducing kernel descriptor
Change-Id: I4ce6ebf27a81cf14b055817ebfe76d8427e349ab
2020-02-25 00:03:15 +01:00
Andrzej Swierczynski e453d2c04f Change method of access to pinBB vectors
Related-To: NEO-4319

Change-Id: I70695361c368a7769b6dbb7db57597f188226133
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-02-24 17:23:54 +01:00
Maciej Plewka 357fdc2e65 Move built ins to share directory
Change-Id: I740a349a0f15229cd356fffe996932029bf0f98b
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-24 15:46:44 +01:00
Dunajski, Bartosz 750036742d Create only available engines
Change-Id: If7880db0dd7aa76b578d0e4e300f510ca686b825
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2020-02-24 14:06:36 +01:00
Mateusz Jablonski 9dbeeea18f Clang-format: restore sorting includes
Change-Id: I34eb993b562c77f56d8fbd51a02ee266c1f76678
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-24 10:22:30 +01:00
kamdiedrich 9e97b42ee6 Reorganization directory structure [4/n]
Change-Id: Ib868ed62d12ea8f9f123644219ba299e86a658ac
2020-02-24 01:04:42 +01:00
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00
kamdiedrich e072275ae6 Reorganization directory structure [3/n]
Change-Id: If3dfa3f6007f8810a6a1ae1a4f0c7da38544648d
2020-02-23 23:48:28 +01:00