Commit Graph

2113 Commits

Author SHA1 Message Date
Dmitry Rogozhkin 7a7bb50328 Fix queue casts which cause spirv to die with assert
Fixes: intel/opencl-clang#46

This fixes ocloc build of scheduler.cl which dies with assert from spirv:
  SPIRV-LLVM-Translator/lib/SPIRV/SPIRVWriter.cpp:685

Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>

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

Change-Id: I5c9d4a75321008802b9d77ef4a6bad3812e1b8b4
2019-03-18 13:30:37 +01:00
Mateusz Jablonski 13f9f3a929 Prepare for refactor map methods of wddm
Change-Id: I33249d9a097d717ab2eb5801eaa17154f68ffdce
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-18 13:26:28 +01:00
Mateusz Jablonski 519514cf2e Don't use GMM_RESOURCE_USAGE_OCL_BUFFER_CONST policy
Change-Id: I4c09f9b2d5c1a1f178746940426e29a564a896ae
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-18 07:29:33 +01:00
Dunajski, Bartosz bbac4dea6f Manifest update
Change-Id: Ie30fb068de9b8f5cfe7e25ffd21b8f30f47b318b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-17 19:48:16 +01:00
Milczarek, Slawomir 49c428d1ff AUB allocation dumps with pollForCompletion
Change-Id: I610a56d7b8d1b6f1f0d6029ce6d2e62742885698
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-15 16:13:31 +01:00
Hazubski cb3ee6e8d2 Update memory flags validation for Images
Change-Id: Ifc8b50301cd82bd7e9c83da626a02dbc1643e0b0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-15 11:31:32 +01:00
Jablonski, Mateusz 82ec564ca2 Manifest update
Change-Id: I7861c9d649ae525e627b1fbd5ec8f2591ede498e
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2019-03-15 10:11:25 +01:00
ocldev d3b5bb2e74 igc revision update
Change-Id: I40ccc5ae91753036dce61a8bfb37ac9e4438a664
2019-03-15 09:30:22 +01:00
Maciej Dziuban 8742b91439 Internal update
Change-Id: Ic56286619cc4de70b45d5a104af0d1734ce0e1e5
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-15 08:55:42 +01:00
Zbigniew Zdanowicz 8e743cc1bd Refactor Wddm interface of mapping GPU VA
Change-Id: Ic807dfb17fd0ab664af281db757e48b0cc424fcb
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-15 07:50:53 +01:00
Mateusz Hoppe 16e1a05375 Test for DrmMemoryManager allocateGraphicsMemoryInDevicePool
Change-Id: If04321fc1045d01c0001e27eed8b2a128b830f25
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-14 19:25:15 +01:00
Maciej Dziuban 38aa884edd Select GMM_RESOURCE_USAGE_OCL_BUFFER_CONST policy for read-only OCL buffers
Change-Id: I338d1a1cf90c5b48009357d79b036d6d50e54b4a
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-14 16:09:27 +01:00
Zbigniew Zdanowicz cdb52400c4 Add new functions reserving address range to Memory Manager
Change-Id: I947203c24495c9e5a206b95bb0c69440824586b6
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-14 15:06:11 +01:00
Milczarek, Slawomir 669d19297c Extended criteria for writable buffer with other buffer types
Change-Id: I1911bb87b115a517938ef4d4ca5ae66d2d98e178
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-14 11:07:14 +01:00
Dongwon Kim 8cc90014a6 realAllocationSize for keeping actual GPU allocation Size
Change-Id: I3e00a556f25d3c147335420d887d7dcee737dbac
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
2019-03-14 09:51:40 +01:00
Piotr Fusik 25e6494443 Use std::bitset for deviceBitfield.
Change-Id: I9078ffbb38967b753980cb1c5ebcab00f5292598
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-14 08:36:01 +01:00
Jacek Danecki 4997dffcf8 fix compilation on clang 4 and clang 5
https://github.com/intel/compute-runtime/pull/142

Change-Id: I1a4fecd3dd6dd4739d352f7b811b95403fe68951
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2019-03-13 19:51:30 +01:00
Mateusz Jablonski 395e79fee8 Add support for many GMMs in Graphics Allocation
Change-Id: I955b8dd50b502f91700c5529d0a0a291632aa157
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-13 15:44:45 +01:00
Filip Hazubski 40541e4faa Update Image compression
Change-Id: I3a15dba343a80716b57cdda6b74f2142814021f3
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-13 13:59:50 +01:00
Koska, Andrzej fcdfcb3fc4 Pass enqueued values to enqueueHandler
Change-Id: I991818657c7cafaf8911ce711a87a6c7b4531517
Signed-off-by: Koska, Andrzej <andrzej.koska@intel.com>
2019-03-13 11:23:37 +01:00
Filip Hazubski 01c11fdf98 Fix typo in variable name
Change-Id: I693e73d7fcb7c586506d3e102b77b95a0a0d3783
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-13 09:23:28 +01:00
Mateusz Hoppe a2835490b1 Support for handling remaining ioctl requests in DrmMock
Change-Id: I5672bcaa746f70c77be85a47e0dcaf59aec6023d
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-13 04:54:35 +01:00
Mateusz Hoppe 573d2e0eec Add enableLocalMemory param to DrmMemoryManager ctor
- add linux dll tests for createMemoryManager()

Change-Id: I6e111e7a480d895a8520507af6b6a699f9dca160
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-12 22:22:37 +01:00
Cetnerowski, Adam 891f5c6177 ULT refactoring: get device info tests
- split out special cases
- unify naming convention

Change-Id: I28615c05068db04bc3929e427bc8f2ed77052593
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2019-03-12 20:27:16 +01:00
Dunajski, Bartosz d259a5cf6a Manifest update
Change-Id: I3d656c82e149c3b046183d8c6572dd6fe7320886
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-12 18:56:17 +01:00
Piotr Fusik 2c524f94a4 Const correctness.
Change-Id: I68be05e6c1c3c9c0dc33ba8252a0a5bbeefc06a4
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-12 18:11:35 +01:00
Artur Harasimiuk d6ec295d74 infrastructure update
Change-Id: I9f5c24d7d58b068ebe6a1d9358e64d5ab2009876
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-03-12 17:31:22 +01:00
Mateusz Hoppe 568b6c839e Move DrmMemoryManager fixtures to header
Change-Id: I9e8a9f9cb6e27a7b28a4a50a4bd42640bd6ca628
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-12 16:10:18 +01:00
Piotr Fusik ec72787b98 Remove MemoryManager::allocateGraphicsMemoryForHostPtr.
Change-Id: I629f2299a183fc135135dbaff89216b966554a95
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-12 15:51:32 +01:00
Milczarek, Slawomir 5fabd6e822 Fixed unlock resource in CSR HW with AUB dump mode
Change-Id: I186eb06a3a7ed50c8a18a4d08f3b5d2e991d7fcd
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-12 12:46:48 +01:00
Mateusz Jablonski c0325b5d19 Don't copy memory to allocation if allocation has no storage
Change-Id: I3238bec02e5c1ec5877537318bb563e3d0f3799d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-12 09:44:17 +01:00
Venevtsev, Igor 74f1896c03 Expose GfxPartition to shared MemoryManager
Change-Id: I039e463f90e88c0ed8e9505cc770c373420ff567
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-03-12 09:25:50 +01:00
Zbigniew Zdanowicz de212138b7 Use GPU address of SVM allocations in kernel functions
Change-Id: I65fb22df2e005468956af1369b0b822cdaeaedf1
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-12 09:24:44 +01:00
Stefanowski, Adam 341fcfc091 [1/n] Move Hardware Info to Execution Environment
- remove gmm_environment_fixture
- remove hwInfo parameter from ExecutionEnvironment methods

Change-Id: Ieb0f9b5b89191fbbaf7676685c77644d42d69c26
Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
2019-03-12 08:39:26 +01:00
Pawel Wilma a1bfbcf293 Fix typo for DeviceBitfield
Change-Id: I21718950f3d1b17ad507af76762153aefb090615
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-03-12 08:21:14 +01:00
Filip Hazubski cb39644c69 Infrastructure update
Change-Id: I065174e8ee12fee1ff3efcc4f97f5e84d5d8ca01
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-11 15:44:09 +01:00
Maciej Dziuban 79d0878e64 Wait for resource not being used in freeGraphicsMemory
Change-Id: I201d914569fc0cf6f9eb616d456a670b0b8741ab
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-11 12:18:38 +01:00
Artur Harasimiuk 04c2064382 do not copy compiler libraries during build
Instead of doing copy we can use LD_LIBRARY_PATH and use files from
original location

Change-Id: I3e936370da6a29fbeb00bdb4b324c13572e5ba47
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-03-11 11:58:11 +01:00
Mateusz Jablonski 3f690e1758 Dont unlock/evict wddm allocations during releasing memory
Change-Id: Ib934867886a883a22fde2f0c03e16338dc215e65
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-11 10:20:09 +01:00
Jobczyk, Lukasz 4386d10e40 Reverse logic of creating Memory Manager - part 2
-remove MM initialization from Device::CreateEngines method

Change-Id: Iaee268b002cb0f0a4edd07907c12da6dd6076b3a
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 14:52:55 +01:00
Piotr Fusik 8e49c8f67a Improve readability of getMaxApplicationAddress.
Change-Id: I92bba124746b4d16bf4cdae294e24c4667e03aef
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-08 13:30:22 +01:00
Piotr Fusik 5c60db1706 Remove dead code.
Change-Id: If6c35affea9bfa563ce7ab4e324a2e1d994e83bc
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-08 12:15:13 +01:00
Dunajski, Bartosz a536b98dee Manifest update
Change-Id: I03a4e977f2db4c9feeeeeeb3a9b4c85c0e931d1d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-08 11:58:55 +01:00
Jobczyk, Lukasz 878fd43a1a Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method
-create MM from platform before creating devices

Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 09:47:29 +01:00
Dunajski, Bartosz cd90cdc946 Manifest update
Change-Id: I662d8702cda7660a94aa2a0679f3e3434b08a6c9
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-08 07:55:42 +01:00
Milczarek, Slawomir 2cf6606a31 Infra revision update
Change-Id: I20e69aa55bc3195985d4da2cfb113d95be81f258
2019-03-07 13:54:07 +01:00
Mateusz Jablonski 5b22a50b28 Allow to create WddmAllocation with multiple handles
Change-Id: Iac9df91b08a6ce610b985586dfb6b5f63dc668cb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-07 13:29:00 +01:00
Maciej Plewka 7df0be9a13 Manifest update
Change-Id: I45478a6070f841ea75cd634a8150b473bb987439
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-06 19:05:49 +01:00
Filip Hazubski 880e891040 Move getDevices to a separate file
Change-Id: Ia5ea548ce233d332a040fd3a50592da294d3d612
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-06 17:59:25 +01:00
Piotr Fusik a2c05a241d Set allocationType in constructors.
Change-Id: I66738be1239acdaf282f813aed46066bc5023112
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-06 16:07:28 +01:00