Commit Graph

840 Commits

Author SHA1 Message Date
Artur Harasimiuk 821f31b398 remove unused member
Change-Id: Iba055d55377ca1ea650d483fdefd1940bd1e91f9
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-09 13:57:33 +02:00
Artur Harasimiuk e8424f242b don't enforce igc version from CMakeLists.txt
moving this requirement to .spec file. CMake should try building with
any IGC version installed in system. More strict requirement should be
defined at package level.

Change-Id: Ieae656fa0eac4069ee8870a829fe116e66ee5ced
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-07 10:16:54 +02:00
Artur Harasimiuk 1323880cf8 infrastructure update
Change-Id: I42f9d66ed6236d0930b5fe6bfb50bdc2c34db1a2
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-06 16:37:04 +02:00
Artur Harasimiuk b3c742be72 make fedora.spec.into be el7 friendly
add if() to detect build for el7 and then switch to use devtoolset.

Change-Id: I34d00ee59d73a9dec8e030091ff15b5fb858a548
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-06 16:13:27 +02:00
Jacek Danecki aedbf48246 ci: add arturh/intel-opencl-staging repository
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/60

Change-Id: Ic96b904fb061a02e33f2ade23d748c425de0e243
2018-07-06 13:31:22 +02:00
Dunajski, Bartosz aa96508354 Set valid coherency type in Surface State for Buffers
Change-Id: Id84f6a8561831d29b1de9ac589a52e3e083eefda
2018-07-06 13:01:25 +02:00
Hoppe, Mateusz 684b1d75ba Refactor GraphicsAllocation::AllocationType and allocationType enums
- change GraphicsAllocatoin::AllocationType to scoped enumeration
so that ALLOCATION_TYPE_ prefix in every enum value can be removed
- all accesses are typed (example AllocationType::IMAGE)
- Rename allocationType to AllocationUsage to eliminate confusion
with multiple AllocationType enums / types

Change-Id: I16003297ecfcb0aaa5779ad00706c5d983914bbe
2018-07-06 13:00:08 +02:00
Koska, Andrzej 1c88165f6f Simplifying plane tests
Change-Id: I0ac491036a2f7b303a08ef6d345fef3442dc98b1
2018-07-06 11:08:39 +02:00
Dunajski, Bartosz b3414ae5f2 Program Aux Surface params for Buffers
Change-Id: I7bf838b5c157e8d89d59cd1abc63ddb3bfc7ae30
2018-07-06 09:28:06 +02:00
Mateusz Jablonski 94dbdb602d Add instance of gmm helper to execution environment
Change-Id: I1b044611fbad91fbb681ba233938f41502f29056
2018-07-06 08:48:19 +02:00
Artur Harasimiuk f26535a93d Infrastructure update
Change-Id: I25bbfb86256347ab5292c61a5a257a68c97de083
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-06 00:01:28 +02:00
Milczarek, Slawomir 1fda1331c0 AUB CSR to flush file stream on every enqueue call
This commit adds an explicit flush on AUB file stream to CSR flush method.

Change-Id: Ib491718dba6c7b4a5b1e173111830bd3ab72a3d0
2018-07-05 16:12:42 +02:00
Hoppe, Mateusz e437589ace Add callstack printing to cloc
- callstack is printed when SEH / SigSegv / SigIll is raised

Change-Id: I4bddd1208351027ee67fc6bae2404a90022373c7
2018-07-05 14:40:56 +02:00
Artur Harasimiuk a7dbc55ae5 improve DEB package building
Change-Id: Ied7d980b5ec1ff478dc4f417b77734d27ee4dfe2
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-05 12:46:17 +02:00
Dunajski, Bartosz 2f9e83df11 Update AUXILIARY_SURFACE_MODE enum usage
Change-Id: Idaa3a7db04c8ed9f50a9610c516495a11f7a56b6
2018-07-05 09:00:55 +02:00
Dunajski, Bartosz eead3ec683 Abort execution when registering invalid sharing object
Change-Id: Ie6091eb659c423ffe5deb4a3ffe55ae0ef66797d
2018-07-05 08:35:49 +02:00
Jacek Danecki cf1f60a1b4 ci: run build on Fedora in one container
fix for dnf install issue:
error: rpmdb: BDB0689 Packages page 465 is on free list with type 7
error: rpmdb: BDB0061 PANIC: Invalid argument

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/59

Change-Id: I7ee5afc7b2398feabb5aa2e9c42feae6196ed1be
2018-07-05 00:59:06 +02:00
Mateusz Jablonski 98f1b72e7b Set preferred platform to avoid setting the latest platform as default
Change-Id: Id8bad91d97b6abe2d63bf691350dfff33225ebc8
2018-07-05 00:50:35 +02:00
Dunajski, Bartosz 0aea0b6fca Fix include order dependency
Change-Id: I65fe4f51040f57fd074f61b5917872d69f441998
2018-07-05 00:49:39 +02:00
ocldev 4dee2c789a gmmlib revision update
Change-Id: Iaaf05c4f3d17142f68ed9247a717f956ce9b1164
2018-07-04 16:38:27 +02:00
ocldev d83ff8f245 igc revision update
Change-Id: I9505f44274ffcc8b916fc5580bf76c8aa280d968
2018-07-04 16:09:21 +02:00
Artur Harasimiuk c4c127a7c6 Infrastructure update
Change-Id: Ibe161ec1afca647f612336c13385750d9bac5357
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-04 05:00:07 -07:00
Artur Harasimiuk cb44a28f8e version.cmake improvements
- dynamically calculate NEO_DRIVER_VERSION for non-UNIX
- remove fixed NEO_DRIVER_VERSION from main cmake file

Change-Id: Ifab6182b1895086c1399f70112a4c9ad4cc66a0f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-04 13:06:59 +02:00
Hoppe, Mateusz 64277ee849 TBX CommandStreamReceiver fix for makeCoherent
- makeCoherent should be called after TBX finished processing
 - this is when tagAddress is updated with taskCount
makeCoherent is called from makeNonResident which is invoked just
after flush and may happen before TBX server finished processing
leading to invalid data to be read back to CPU accessible memory

- this fix adds waiting for taskCount to blocking calls for TBX CSR
before calling makeNonResident on surfaces to guarantee correct data
from TBX server is ready.

Change-Id: I498a5454e0826eec2a5413a08880af40268550e1
2018-07-04 12:04:32 +02:00
Stefanowski, Adam 8fd7f6a8ce Passing the capabilityTable as a reference to the constructor
previously we couldn't add new variable to capabilityTable structure
becasue then we get too large function argument passed by
value

Change-Id: I162967ba195ec18fc781d127012f82e8876913a6
2018-07-03 16:51:17 +02:00
Koska, Andrzej 87af7b3c2b Adding support for formats P010 and P016
Change-Id: Id57fa936be9c31049fd50a5309a7fd02f000f7e3
2018-07-03 16:06:07 +02:00
Jacek Danecki 9b83722dd5 ci: build Neo using IGC from Fedora 28 copr repository
Change-Id: Ica65281d26065e52c367720f46ded466e01e732b
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-07-03 15:03:23 +02:00
Jacek Danecki de35fc8f76 ci: build Neo using IGC from Fedora 27 copr repository
Change-Id: Ic893433767e3d2ad1e7175c45894dfa838908c63
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-07-03 14:57:28 +02:00
Dunajski, Bartosz e26d67cde3 Aux surface programming for Buffers [1/n]: Gmm interface improvement
Change-Id: I984b8ebee27808a236217e82bb4e910550d624c4
2018-07-03 13:00:08 +02:00
Milczarek, Slawomir 86565e5f06 AUB subcapture in toggle mode to be controlled with HKCU regkey
- move AUBDumpToggleCaptureOnOff from HKLM to HKCU without admin rights
- fix AUB subcapture in toggle mode to call make resident in standalone mode

Change-Id: Ia6971921f33bb9ca63112790af870217da8a1585
2018-07-03 12:56:06 +02:00
Hoppe, Mateusz f82b88e5bf Device enqueue - fix global pointer increment in scheduler in 32 bits
- global pointer address is stored as ulong so 8 byte increment is
required in 32 bit

Change-Id: I1c3df1c402223ed957124c8d7522570936cbcee3
2018-07-03 12:00:08 +02:00
Artur Harasimiuk 0a91c1e3a9 automatically detect driver major and minor version
Change-Id: Ibdf187ca336855ceca960dab1486cc668654495f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-03 11:49:30 +02:00
Artur Harasimiuk 5897d98c61 fix invalid dereference in DataParameterTest
Some tokens may not be processed by Neo. We should check whether
token was stored in dataParameterBuffers array instead of blindly
dereference element zero.

Change-Id: Ibb3e80c3b3fc031c6b5e9c8bea404429d8a48c34
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-03 09:51:04 +02:00
Artur Harasimiuk 74bc0afb03 Infrastructure update
Change-Id: I40aea040df39240239b285c107a2ace2da8ad902
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-02 16:11:12 +02:00
Kamil Diedrich ddb358f262 Add unit test for checking CSR base address in preamble
Change-Id: I0bcdd9156492e767691691d1f207ea053bc5b002
2018-07-02 15:19:14 +02:00
Kamil Diedrich 784ddf0a6c cleanup dead code, readability fixes
Change-Id: I91a3947d4ec0ef2264afed5abc58ff66151f0dc6
2018-07-02 12:50:15 +02:00
Artur Harasimiuk ef52a37edf remove redundant expect
Neo can work with more recent version of IGC. In such case some of
patch tokens my not be supported yet. Thus, expecting vector size to be
1 for every valid token is invalid assumption.

Change-Id: I987c29912590bcf15c13073fdbb463e7f9db3d1d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-02 09:38:27 +02:00
Koska, Andrzej 3548876263 Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: I4d60aceea96dfbe50b2af4a1fbaada6a150ddd35
2018-06-29 16:13:29 +02:00
Mrozek, Michal 815151cb94 Simplify memory manager interfaces.
- Remove one function that routes to another function.

Change-Id: I44c17bf51abaf3aebf0692086de0f38e0693ab59
2018-06-29 15:39:10 +02:00
Artur Harasimiuk 26ffab8a0c improve kernel data parameter ULTs:
- add assert to check size() of patchInfo.dataParameterBuffers
- add test case to ensure that unknown parameter is not added
- move one test case from TEST_P -> TEST_F. no need to be TEST_P as
  GetParam() is not used

Change-Id: I9ff753601ac1d4f2484cf13f5fa6b728b0dcd4a2
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-29 12:50:49 +02:00
Mrozek, Michal ad96adfcef Remove isRootDevice logic.
- Our device are always root devices.

Change-Id: I057485cda9fba2988b0910f5349f7ced527abe29
2018-06-29 11:22:41 +02:00
Mrozek, Michal b52b1d0aea Simplify platform destructor.
- remove not needed code.

Change-Id: I7fad36e651e33156a136467f8b2e32d88f13ac13
2018-06-29 11:12:40 +02:00
Dunajski, Bartosz 5408913d38 Set HwInfo to GmmHelper on Device creation
This allows querying HwInfo from code that doesnt have access to Device

Change-Id: I0084f824f557cd85c2fdfbf0ff2ec71118e9af2e
2018-06-29 11:02:52 +02:00
Kamil Diedrich 5186474ef5 return CL_BUILD_NONE when clGetProgramBuildInfo is called
return CL_BUILD_NONE from clGetProgramBuildInfo (CL_PROGRAM_BUILD_STATUS)
when clCreateProgramWithBinary was called and no build has been performed
on the specified program object for device.

Change-Id: Ib59dd07671a69ab1325c6c51f28e9dd550d5e5bf
2018-06-29 06:56:45 +02:00
Mrozek, Michal 415623b08f Remove default parameter.
Change-Id: I7da92801c7fa45b66bb7d770154d901bd3af9f5c
2018-06-28 14:47:20 +02:00
Artur Harasimiuk 561cdb7df5 allow gmmlib to be detected using pkg-config
Change-Id: I9f706f100c9902b71a6bfa6465e17a68d26be49e
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:55:36 +02:00
Jacek Danecki 01fccf26a9 ci: switch Arch build to gcc8 on Semaphore
Change-Id: I764a902b89c84b318429198fa72bd138b4452a49
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-28 13:48:38 +02:00
Artur Harasimiuk 317e6c08f4 use GNUInstallDirs to detect locations
Change-Id: I288a0420caaaa6965e1e7f2f6f1a1491682d407a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:40:10 +02:00
Mrozek, Michal b20bcb8b31 Move platform shutdown to destructor.
Change-Id: Ifeca1c5fe11d8e562b9f4641737b6bf1ac70aac6
2018-06-28 12:36:23 +02:00
Mrozek, Michal b7545f1401 Decrement context ref count as a last action in program destructor.
- There are various calls to device inside destructor.
- Memory manager is protected via device , which is protected by context.
- If context is destroyed it means that device may be destroyed, which means
that memory manager may be destroyed and we have a seg fault.

Change-Id: I2cb6a69790f53bf2c9fba89160078b009e105574
2018-06-28 09:01:51 +02:00