Katarzyna Cencelewska
00a62f204a
Add missing API_ENTER logging in functions:
...
clGetPlatformIDs, clIcdGetPlatformIDsKHR,
clGetPlatformInfo, clGetDeviceIDs,
clCreateSubDevices, clRetainDevice,
clCreateContextFromType
Change-Id: I571b036cc6b64a66d768d7f3f8eb55e7d69b9aa7
2018-08-01 14:29:10 +02:00
Mrozek, Michal
f60847b64e
Pass device to flushTask.
...
- do not obtain it from memory manager
Change-Id: Icc7c03dc925c69ec5932c5812151ac28dc34d20d
2018-08-01 14:11:06 +02:00
Mrozek, Michal
6d5162552b
Use make_unique to create mock devices.
...
Change-Id: Ifd3cb1e7594d736d9f783c08b947637de6a876ea
2018-07-31 14:52:56 +02:00
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
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
Maciej Dziuban
7e380dad62
Delete incorrect check in setArgImmediate
...
Change-Id: Ie02bb4a6f34f564fb563e373c4e37f851cd29e92
2018-07-30 14:12:41 +02:00
Stefanowski, Adam
16b7cd1a75
Move debug variables to new location
...
Change-Id: I2311f9b3f7bbe1a319c25ae3a99e5c41452faf90
2018-07-30 11:22:02 +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
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
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
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
Hoppe, Mateusz
229d1ad794
Merge two MockMemoryManager classes to a single one
...
Change-Id: I4b994b21a2423f1f3c077e847483766798c8d7f9
2018-07-24 16:48:03 +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
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
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
Dunajski, Bartosz
239ebf9eab
Improve AllocationType operations: dont do bit operations on enums
...
Change-Id: Ie70ca9e2a93ec80b1cd655bad622db9e12abb7f7
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2018-07-20 09:12:58 +02:00
Mrozek, Michal
f487ce11a2
Limit device usage in memory manager.
...
Change-Id: I488574dc2b2878b640f0bac2b23bd9a6a265f0e2
2018-07-19 18:27:42 +02:00
Stefanowski, Adam
623314665b
Set valid "max number of threads" in MEDIA_VFE_STATE
...
Change-Id: Icd55fe6b5cae5a92021d2692fe09c19535e64121
2018-07-19 15:17:17 +02:00
Mateusz Jablonski
96e3163386
Prepare to use gmm dynamic lib on Linux
...
Change-Id: Ie1b0c8fe13c4e044f1f2b0651349840d2850f423
2018-07-19 01:04:52 +02:00
Dunajski, Bartosz
1c0f90b194
Improve renderCompressed flags usage
...
Change-Id: Ib5fd8e078dba0f19dd65bc8cdc6cded771e559a2
2018-07-18 19:55:52 +02:00
Chodor, Jaroslaw
b490a1331b
Refactoring/preparation for preferred IR from FCL
...
NEO will be querying FCL for preferrerd IR
(intermediate representation) instead of
using llvm bc.
Change-Id: I98316b5623557a9651da2a4c5e610ab26421c491
2018-07-18 16:49:29 +02:00
Mateusz Jablonski
3b0292ae0d
Do not set up fixtures when product mismatch
...
Change-Id: Idc831a6d87dba6cbe2822531a2701a9fbdd409df
2018-07-18 12:06:47 +02:00
Hoppe, Mateusz
407227959a
Add memoryPool to GraphicsAllocation
...
- new ExtendableEnum struct that serves as enum but can
be extended with values
- decrease dependencies on graphics_allocation.h header -
use forward class declaration when possible
- memoryPool indicates what kind of memory is allocated
for a given GraphicsAllocation
Change-Id: I7a707c28dc4544cc73abc5f0ed5263ba5be17452
2018-07-17 20:10:33 +02:00
Dunajski, Bartosz
4a6be207cd
New patch token for pure stateful buffer access
...
Change-Id: I90589a1cc3c3fa3608e7a5da438660ed85efcffa
2018-07-17 19:55:16 +02:00
Mrozek, Michal
d2e820aac8
Enhance validation in sharing scenarios.
...
Change-Id: I590c5d66602749fb5702e414ccf2b1acec3bc9e7
2018-07-17 19:47:54 +02:00
Mrozek, Michal
07031518dc
Add error handling in d3d9 sharing scenario.
...
Change-Id: I3f337b633514d90298f03a9fa486757026137151
2018-07-17 19:25:36 +02:00