Commit Graph

1010 Commits

Author SHA1 Message Date
Chodor, Jaroslaw b83696c1b0 Changing cloc tests to accept SpirV as IR
Change-Id: Ia12d3f144711bd7af639869d28d1e4a1fa80bb15
2018-07-31 13:39:01 +02:00
Chodor, Jaroslaw fcfef318c1 Fixing hash calculation in MockProgram
Change-Id: I869bca0cc8c0d2c87901cde65e7cf62d81a10285
2018-07-31 13:32:11 +02:00
Maciej Dziuban b83b9ac120 Stop creating MockContext in MockParentKernel
Change-Id: I398d7e6f159e246e4f66cd73ac1f04eb09ea04ca
2018-07-31 12:20:52 +02:00
Mrozek, Michal d53e1c3979 Optimize power usage in VA sharing scenarios.
- in VA sharing scenarios driver needs to be as power efficient as possible
- Added new mode to KMD notify helper called maxPowerSavingMode
- in this mode, whenever GPU is not busy, driver will choose non busy wait
path.

Change-Id: I7e4079be995107bea543ffda774ca161ce483944
2018-07-31 12:10:22 +02:00
Chodor, Jaroslaw b4b4a306d4 Reflection surface test improvements
Don't rely on hardcoded offsets

Change-Id: I2a525fdde20608a2d0737655d49dfe4d7043edf4
2018-07-31 10:52:31 +02:00
Hoppe, Mateusz 4441387969 Refactor allocateGraphicsMemoryInPreferredPool
- extend AllocationType to code necessary flags
- remove redundant args
- refactor Buffer::create()

Change-Id: Ic4b2e0931fad8198ad1cf4f79de210d815048ccf
2018-07-31 08:05:55 +02:00
Chodor, Jaroslaw c2454d5aa2 SpirV improvements
* Use preferredIR form compiler
* Allow .spv test files instead of .bc

Change-Id: Ia1a693be52b7391896378fbe159be85f4e7a00c1
2018-07-31 00:26:52 +02:00
Jacek Danecki d382402957 ci: use IGC from ppa (ubuntu 18.04) in Neo build on Arch
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: If24a7e91fab037ac3461c83ce54b192c1f87086e
2018-07-30 21:04:32 +02:00
Mateusz Jablonski df2f29907c Change createGmmContextWrapperFunc to return unique ptr
Change-Id: I74e6c5b1a49ed19f24933edd3062c62d9256f2d8
2018-07-30 18:14:06 +02:00
Chodor, Jaroslaw c5becf63f7 Forcing llvm as intermediate for Link, CreateLib
Link and CreateLibrary will use llvm IR as
intermediate representation always

Change-Id: I370e92ee258d997f04f40320ab4a478970ee22bd
2018-07-30 17:15:21 +02:00
Kamil Diedrich ea92874a66 Revert "Pass info betwean gtpin and igc"
This reverts commit 5654d5673fbff18b1f3c81a8eb3c8dfeb9add9e1.

Change-Id: I2df912fef15755b2e5bd11d3e18e595d71bfad98
2018-07-30 16:10:28 +02:00
Mateusz Jablonski e85e9535ff Infrastructure update
Change-Id: I4e34b9d9e98fcc64c252b0e1211cd182c80e1776
2018-07-30 15:44:32 +02:00
Maciej Dziuban 7e380dad62 Delete incorrect check in setArgImmediate
Change-Id: Ie02bb4a6f34f564fb563e373c4e37f851cd29e92
2018-07-30 14:12:41 +02:00
Jacek Danecki d216fef3cc ci: refactor Shippable build
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: I0b7e49017a7a758f349a6faad0ed5b7a0c48ae96
2018-07-30 12:31:45 +02:00
Stefanowski, Adam 16b7cd1a75 Move debug variables to new location
Change-Id: I2311f9b3f7bbe1a319c25ae3a99e5c41452faf90
2018-07-30 11:22:02 +02:00
Jacek Danecki 1bee11ba86 ci: build with IGC from ppa on Ubuntu 18.04
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: I1f510205ced25a081900e922c43c0e6841132004
2018-07-30 11:14:30 +02:00
Mateusz Jablonski 605683ba35 Update Jenkinsfile
Change-Id: Ied8cffc571e21e070c0e843c8cbe7e01a21c20d1
2018-07-30 09:43:06 +02:00
Maciej Dziuban cc2376173a Don't access more memory than user specified in setArgImmediate
Change-Id: Idb479bd5c8db0248d360563b9f8b3651103eb44a
2018-07-27 16:34:05 +02:00
Mateusz Jablonski 81ded27975 Internal update
Change-Id: Ie3480ca66fa3ac7a21ac4756c0d2d0cd26049c13
2018-07-27 12:06:13 +02:00
Jacek Danecki 50d6e2e940 ci: use IGC from ppa for build on Shippable
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: Ic65895a38f8885cdffd48d26b51016cf6ec572e5
2018-07-27 11:59:09 +02:00
Dunajski, Bartosz 18326df1e2 Remove not needed const_cast on surface state
Change-Id: Id182ddc4dc7d1cdfcf2d1e71ab5aff70c31f30e4
2018-07-27 10:12:23 +02:00
Mateusz Jablonski a906ddaa66 Make gmm client context non-static member
Construct platform and initialize gmm in each test

Change-Id: I4f209369e77213420308f31f911b7a569ea93283
2018-07-27 00:16:30 +02:00
Mateusz Jablonski 7423919629 Unit tests: fix message in case of memory leak
Change-Id: I47f4acee7f026e54ec2112f8a4b571c8bfa00de8
2018-07-26 19:45:44 +02:00
Jacek Danecki fccc5242c2 ci: add build using IGC from ppa on Ubuntu 16.04
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: I5d23a33b63cd7aa0db8d1e67fdae86aae3daba5d
2018-07-26 19:39:15 +02:00
Maciej Plewka aa7662e8b4 Pass info betwean gtpin and igc
Change-Id: I1da3089ba816298b43e493304612fac6a4a10851
2018-07-26 19:25:52 +02:00
Mateusz Jablonski 98061903aa Remove device helper
Change-Id: Ie66c029359a62b81c8658d804dcf8565647100f1
2018-07-26 14:10:05 +02:00
Kamil Diedrich 282f335269 elflib reimplementation - initial commit
Includes:
-add explicit definition of enum types
-replace NULL for nullptr
-add namespace for constants
-replace c-style casting
-add SH_FLAG_NONE for consistency

Change-Id: I3eb8d26cc6b549e91a940ae0d3c095a9f96785f2
2018-07-26 14:03:35 +02:00
ocldev 6e03446a22 igc revision update
Change-Id: I55c97000749353942882c1bc1abab3256780ca25
2018-07-25 13:09:43 +02:00
Hoppe, Mateusz 03bad96877 Add failInAllocateWithSizeAndAlignment flag to MockMemoryManager
Change-Id: Iee6a5ec468a905e065645dbf2ae8b9521c0b04d9
2018-07-25 10:47:09 +02:00
Jobczyk, Lukasz eebb919c18 Move SourceLevelDebugger ownership to execution environment
Change-Id: I7fc6fd1cde2e450dbd41a164f915373e80a4aaf8
2018-07-25 10:32:29 +02:00
Jacek Danecki 6112ce4e8f ci: enable all copr repositories
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: I08afc886bd6c4edc1cc350a8541649ebb9db43c2
2018-07-25 08:33:26 +02:00
Hoppe, Mateusz 229d1ad794 Merge two MockMemoryManager classes to a single one
Change-Id: I4b994b21a2423f1f3c077e847483766798c8d7f9
2018-07-24 16:48:03 +02:00
Jacek Danecki ff9b36bca3 ci: switch from staging to experimental copr repositories
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

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

Change-Id: Ic4e6cca2e4d040129e2220c6a85d3fd3e742299e
2018-07-24 15:40:54 +02:00
Dunajski, Bartosz 579367fe4a Enqueue write buffer instead of memcpy for renderCompressed allocation
Change-Id: I5505add129e08537fc0009b12228a446aa732645
2018-07-24 15:19:41 +02:00
Hoppe, Mateusz c61364bd3f Fix MemoryManager tests
- move one test to cpp file
- do not expect allocation in specific pool when it can be created
in any pool

Change-Id: I42528a012e8eb12c550e81c23e14a0a7a6e33174
2018-07-24 13:24:21 +02:00
Mateusz Jablonski 6618a35126 Remove static gmmlib support on Windows
Change-Id: I9e52f11b196ef9364b710766d9dd302e4dc0cc64
2018-07-24 10:02:03 +02:00
Dunajski, Bartosz 3a807d5643 Render compressed buffer creation flow
Change-Id: I58b7f7eb3b69afcb78c6ab3de1f6fb7524d33f13
2018-07-23 15:29:47 +02:00
Kamil Diedrich 142e52224d Upgrade c++ version with 14
Change-Id: Idbb80f1208a06dfbf91f6214929719833a622004
2018-07-23 13:53:54 +02:00
Mateusz Jablonski ab7920ba14 Gmm Memory: initialize client context in constructor
Change-Id: Iaaa40f5485faceb022e018be7930777e14575b46
2018-07-23 12:27:03 +02:00
Hoppe, Mateusz d80334a534 Add overrideMemoryPool to mock GraphicsAllocation
Change-Id: Ief0cc99a93ae93ec5a6d07a1259ae51e659a954c
2018-07-23 12:19:42 +02:00
Dunajski, Bartosz 512978768e Pass renderCompressed information to GMM for 64kb allocations
Change-Id: I56302055c028e919bceeb3333557cab7451e1d09
2018-07-23 11:28:43 +02:00
Mateusz Jablonski 8537c7f42f Use types of gmm dll functions in gmm interfaces
Change-Id: I91bd9563abbcde32a0c88066a2f6747c1d5abc81
2018-07-23 10:07:27 +02:00
Mateusz Jablonski 8ed9991910 Remove not used function, unify gmm interface filenames
Change-Id: I017697ec4076ddd47f2039f71805a895d687c8a9
2018-07-23 09:09:47 +02:00
Chodor, Jaroslaw 44589b79b4 Fix for spirv regression - preserve IR type
Preserve IR type during Program::compile when program
is created from IR

Change-Id: I9ee12b27e52fa72a1abbfa070895caf0ac3e32fb
2018-07-20 16:54:36 +02:00
Pawel Wilma 2561ff6cb4 Add test fixture for image clear color
Change-Id: I34148f8ab8ec6e2620372bcf02414bf5e5783d2e
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2018-07-20 16:07:29 +02:00
Mateusz Jablonski 56557ca3a3 Unit tests: Initialize gmm before wddm initialization
Change-Id: I751bd93248aa78731b9591f494eafcd12d3e6d82
2018-07-20 15:47:15 +02:00
Mrozek, Michal 70b1745c7a Remove duplication from aub command stream receiver tests.
Change-Id: I53e4eda003f2d8f9b3669e1aeb4da940c3ab34e4
2018-07-20 14:21:12 +02:00
Hoppe, Mateusz f125c8ff45 Add allocateGraphicsMemoryInDevicePool
- do not always expect failures in tests with failure injections
there is retry mechanism for some cases

Change-Id: If7589d2dacc41216d2f3b08f861209bbab179615
2018-07-20 13:00:00 +02:00
mplewka 1afc09bc05 Fix handling null resource from gtpin
Change-Id: I2e6a0992f9c0d672cb42724f2bb1a698b3ba2861
2018-07-20 12:26:12 +02:00
Mrozek, Michal 366a12e3ce Move setting external memory managers to mock layers.
Change-Id: I335fd35269da9093c9e744c2735215e8d561098c
2018-07-20 12:09:48 +02:00