Commit Graph

794 Commits

Author SHA1 Message Date
Artur Harasimiuk 6abcc4a2a9 allow to build Neo with most recent version of Khronos headers
The structure of https://github.com/KhronosGroup/OpenCL-Headers.git has
changed recently and we have to adjust to new layout.
New flow is:
1. try old layout with opencl21 folder in repo, continue compilation
   if successful
2. try with new layout

Change-Id: Ia8c3eb76655aeef70512e9a03d74c72ba776fd4f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-17 11:21:32 +02:00
Dunajski, Bartosz 430f6def75 Wddm interface [5/n]: cmake improvements to find all existing source files
Change-Id: I2f3f004b964f472085a1f036b40f0552489ac288
2018-05-16 14:57:14 +02:00
Maciej Dziuban 6b41b86d20 L3 programming refactor 5/n
- Add explicit specializations of L3Helper

Change-Id: I004c609af33250838eacaa3a28a9d1b154a390bf
2018-05-16 14:37:31 +02:00
Dunajski, Bartosz ef76b9ddc4 Wddm interface [6/n]: Add debug variables
Change-Id: Ia4a6b25f2c5b0a230e7344f34822197e90d45ff3
2018-05-15 15:19:53 +02:00
Maciej Dziuban 41f570ab50 Fix overestimation of MediaVfeState in CommandStreamReceiver
Change-Id: I38fd00f6b994f6a62921bcc09f293cabc95773d4
2018-05-15 11:13:20 +02:00
Dunajski, Bartosz e4857867a9 Wddm interface [4/n]: Make 2.0 default version
- Create Wddm20 interface by default for runtime and ULTs
- Add Windows dll test for Wddm creation

Change-Id: Id0a1b86e68112c31078b6965c647a5218790150f
2018-05-15 09:16:28 +02:00
Artur Harasimiuk 137193d3ae fix profiling resolution for BDW
Change-Id: Id4543c17dc7ff3434815dd131abe306a4a37f5ff
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-14 20:13:28 +02:00
Zdanowicz, Zbigniew db94399353 Add option in cmake file to automatically include subdirectories
Change-Id: I46140d4bad51a876c771909ae63dc6bd4ce933db
2018-05-14 15:52:46 +02:00
Hoppe, Mateusz 47f1abe543 Source Level Debugger fixes
when SLD is active:
- make Sip Kernel Resident
- program GPGPU_CSR_BASE_ADDRESS
- Disable Preemption

- adjust getDebuggerOption input param,
value passed has to be at least 2 bytes in size
change unit test behaviour accordingly

Change-Id: I4ec87d0e8dfcf02437fdeeffc5363314eea5dd07
2018-05-14 15:51:32 +02:00
Maciej Dziuban 749d89a9bf L3 programming refactor 4/n
- Fix overestimation of preemption programming in preamble

Change-Id: I4ddfc6a2dacbe1160c68cdcef08125a5d5e74835
2018-05-14 15:39:28 +02:00
Hoppe, Mateusz baa7640c90 Rename MemoryType enum to AllocationOrigin
- better describes the meaning of INTERNAL and
EXTERNAL allocation types

Change-Id: Iacb97f5a9d63f45b60bc404cc6dd32c7ebd72ab3
2018-05-14 12:38:52 +02:00
hjnapiat eedde057ea Minor refactoring of CommandComputeKernel class
- class cannot operate without kernel object
- improved ULTs

Change-Id: I4d1a6c3685f3908ce07154605aea649cae349d27
2018-05-14 12:26:46 +02:00
Mrozek, Michal 621a2dfcd1 [34/N] Internal 4GB allocator.
- Change dirty state helpers to work on IndirectHeaps.
- Instead of comparing size in bytes and cpu pointers, compare gpu base
address and size of the heap in pages
- That allows to not have dirty flag for heaps that are coming from 4GB
allocator.

Change-Id: I0ff81e3c0945b32e4f872a100cd10b332b27ed24
2018-05-12 16:01:30 +02:00
Artur Harasimiuk 10e5b71111 dependencies cleanup
move gmock/gtest to third party

Change-Id: I96b43a3de2b6f2151659a9b2eed27eb58db5ce48
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-11 15:04:45 +02:00
Zdanowicz, Zbigniew 33fee15711 Change interface to pass Interface Descriptor Data as pointer
Change-Id: I0f33109b800a7607206954bb1e5cb0826290e6f3
2018-05-11 14:35:53 +02:00
Mrozek, Michal 2e06df06ff Revert enabling preemption in all tests.
-It is causing big execution time increase from 6s to 11s on Debug64 Windows
target.

Change-Id: Id7d6b51e04653ef52248c0c83dc82d086f9cfd11
2018-05-11 14:24:22 +02:00
Hoppe, Mateusz e0079dae3d Update manifest
Change-Id: I1ea3bf0f74b3a544cf80cb557d9fbc54024f4eb2
2018-05-11 14:16:32 +02:00
Milczarek, Slawomir cf5b5aecec Update header with structures for AUB services.
This commit updates the structures and adds getters/setters to AUB services.

Change-Id: I14ce251b68f233428458958565c2d52551661747
2018-05-11 13:37:32 +02:00
Hoppe, Mateusz b59a5f1910 Source Level Debugger - adding notifications
- notifySourceCode, notifyKernelDebugData, notifyDeviceDestruction
- added processDebugData method in Program
- change options when SLD is active
- add space at the beginning of extension list options

Change-Id: Iac1e52f849544dbfda62407e112cde83fa94e3ad
2018-05-11 13:12:36 +02:00
Mrozek, Michal cec056f3c4 Turn ON DrmGemCloseWorker.
- For every command buffer that we submit, pass it to gem close worker.
- Gem close worker will do asynchronous cleanup if this resource is meant to
be destroyed.
- if the resource is not meant to be destroyed we will call IOCTL wait for
this batch buffer.
- This will result in bumping up GPU clocks and better performance.

Change-Id: If9f181e411d7748573f31682e875a97c5355abe5
2018-05-11 10:54:09 +02:00
hjnapiat 562ededffe Fix setting mediaSamplerRequired dispatch flag
Change-Id: Ie5d1100c34183ca970c99a5f46ce7866a7108ebc
2018-05-11 09:58:05 +02:00
ocldev f64f9c7c99 igc revision update
Change-Id: Ic903ef8228b53c52bbbd623f2a2f6ef6c12034ca
2018-05-11 09:17:51 +02:00
Mrozek, Michal 2c896b64b4 DrmGemCloseWorker now works on BufferObject instead of DrmAllocation.
Change-Id: I490edfc7532081eb31f700be70781c276dbc2916
2018-05-11 08:17:35 +02:00
Dunajski, Bartosz bab9ad6cda Wddm interface [3/n]: Improve constructing Wddm object
- Only Wddm object owns Gdi
- Dont pass Gdi object to constructor
- Move Wddm related files to new directory

Change-Id: Iadd26634c7692db760d7d3367211c32d2c2c8121
2018-05-10 17:14:25 +02:00
Mrozek, Michal 06287af541 DrmGemCloseWorker - remove not used modes of operation.
Change-Id: Ie8524a8411f1022785536a523aad3e4ebea3a349
2018-05-10 15:34:20 +02:00
Mrozek, Michal f90ced1452 Update internal.
Change-Id: I2afef5c1359c257094e9f819c5c58fc7445ca45b
2018-05-10 13:55:58 +02:00
Zdanowicz, Zbigniew f94844305f Add new arguments to aub dumping interface
Change-Id: I226ec04a919f4ca6ae5c237cf189e043f8286d5e
2018-05-10 13:33:54 +02:00
mplewka 2bc2869fe1 Refactor ult's for preemption enabling part 2
Change-Id: If8e335e87f3a78d35cab12a17880fb1922d479f5
2018-05-10 13:12:03 +02:00
Maciej Dziuban 541735d932 L3 programming refactor 3/n
- Add L3UltHelper to be able to tell if L3 config is programmable
- Run L3 config kernel tests according to its output

Change-Id: I55b76e2da325d28f62b0bde20250b68f02154ae2
2018-05-10 12:43:10 +02:00
Dunajski, Bartosz 2b9cf69d84 Manifest update
Change-Id: I05a71faccfb1a7fd4379b0b7697a20c595468b19
2018-05-10 12:28:45 +02:00
Dunajski, Bartosz 3a5227f9a0 Improve MockGmmMemory usage
Change-Id: I5edfe5a09c743d1672631a62be588e2aed55fd46
2018-05-10 11:58:27 +02:00
Mrozek, Michal d1aaf2e42d Refactor naming in drm memory manager tests.
Change-Id: I9dedc5397150869874e15f379d75e7135c11a7b5
2018-05-10 09:21:05 +02:00
Dunajski, Bartosz 46003145e9 Gmm interface update
- Use local gmmClientContext instead of pGMMGlobalContext
- ResourceInfo and PTmanager creation from gmmClientContext
- Mock Gmm context creation in Wddm to have only one instance per run

Change-Id: I67e015c57f0ab5524564760fd9a849615615697f
2018-05-10 08:51:46 +02:00
ocldev 231ad7cfd9 gmmlib revision update
Change-Id: I4d37ec9b6b89838787ba7ef464e229ea80b8a840
2018-05-10 01:23:56 +02:00
Hoppe, Mateusz 2e46129d53 Source Level Debugger: initialization & notify new device
- add source level debugger to device
- load isDebuggerActive function from library
- rename interface to sourceLevelDebuggerInterface in SLD
- add DebugData to KernelInfo with kernel debug data

Change-Id: I2643ee633f8dc5c97e8bbdc9d4e7977ddcbf440d
2018-05-09 13:42:34 +02:00
hjnapiat c8c2832068 Improve logging of some OpenCL APIs
Change-Id: I80f7019dadf4e4f39710ed767745c7a605f44d3a
2018-05-09 12:47:17 +02:00
Dunajski, Bartosz 44e54ef69b Wddm interface [2/n]: Move WddmMock to igdrcl_mocks + more cleanup
Change-Id: I993312c1e17fb474e142424b154666f8af6a4170
2018-05-08 15:57:38 +02:00
Dunajski, Bartosz d33866b027 Wddm interface [1/n]: Wddm fixture cleanup
Change-Id: I9ef300ba6f0abe7659683ee96730621a9b57ea85
2018-05-08 13:14:55 +02:00
Mateusz Jablonski 2298b5db25 Move test kernels dependencies from run_<platform>_unit_tests to unit_tests
Change-Id: I9aca79abd6c8ff8da1acf1da1e74d5e7ec310c31
2018-05-07 18:00:27 +02:00
Dunajski, Bartosz 224676bc2d Change return type of Wddm::createContext to make init more consistent
Change-Id: I113dbd636c2ed11ba76333021535160e46cb7116
2018-05-07 13:08:50 +02:00
Mrozek, Michal 1ea44b631a Add debug message to inform what to do when memory leak is detected.
Change-Id: I08c8ce33c2edc337e878acc16d6fd6acfffa33a9
2018-05-07 11:26:22 +02:00
Woloszyn, Wojciech 081d976d07 update manifest
Change-Id: I239fb62731b19b0715724b86300f000869566cb8
2018-05-04 14:02:21 +02:00
Artur Harasimiuk 21f2350923 package: fix package version deduction
We should check if variables NEO_VERSION_MAJOR, NEO_VERSION_MINOR and
NEO_VERSION_BUILD are defined instead of checking for values. this
allows to set values like '0' which was expanded to false.

Change-Id: I0ceaf0e19053cae29bee78e77f574b92771e2d3f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-04-27 23:06:56 +02:00
Jacek Danecki aee6d10f1f update build documentation
- add information about libdrm and libva compilation
  libva is needed to support cl_intel_va_api_media_sharing extension
  libdrm is needed to compile libva
- add information about building on Centos 7

Change-Id: I56df50c7d312b4e5be0f85576300a5d1ba311e80
2018-04-27 22:20:10 +02:00
Dunajski, Bartosz c2455b412f Move Wddm::init template method to inl file
Change-Id: Ic49242c25c8e553a74ada61533b7db31bead7d7d
2018-04-27 14:53:04 +02:00
Pawel Wilma 95e200df9f Infrastructure update
Change-Id: I7020c6949e4d18295ad980b09432400ff5fe5e8f
2018-04-27 13:34:13 +02:00
Maciej Dziuban 44d35b3534 L3 programming refactor 2/n
- Rename misnamed test function
- Adjust 2 tests, so they use CSR size getters instead of hardcoded values
- Move getSizeRequiredPreambleCS() into CommandStreamReceiverHw class
- Improve PreambleHelper size estimating

Change-Id: I3f292d50e08f3d10d190c9f8722e1f0498481154
2018-04-27 13:10:28 +02:00
Mateusz Jablonski fb97a5c747 Rename isBigCore to isCore
add tests for getPlatformType function

Change-Id: Ief835dd5df8f4753fb0f39763ccbcff366d69a93
2018-04-27 11:56:39 +02:00
Dunajski, Bartosz 7ddc571a11 Add build directory path for configured driver_version header
Change-Id: Ic092c2156b158377dc00c5c754827515ee2d290b
2018-04-27 10:17:05 +02:00
Dunajski, Bartosz d71b46bdae Use configure_file for NEO_DRIVER_VERSION instead of source file property
Change-Id: I76888a7eb2a2c6e228306b5c740c55c6abff93da
2018-04-27 10:13:28 +02:00