Mateusz Jablonski
6a3bbc002e
Set correct flags for tiling when platform doesn't support y tiling
...
Change-Id: I39de5c91aafb9099d799c3323016df692cab349c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-04 22:55:11 +02:00
Mateusz Jablonski
b602cd2bb8
Pass execution environment to memory manager
...
Change-Id: If43cf9d1353b4cbc02ea269fb9105c01cc4e0876
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-03 22:12:26 +02:00
Mateusz Jablonski
9a1adc3095
Remove scenarios with memory manager with null csr
...
Change-Id: Ie151bf3d16c5d994f154c8f9ac3db43702a4798c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-02 21:43:21 +02:00
Hoppe, Mateusz
4ea9f496d5
Fixes for AUBs
...
- pass aub usage in MockDevice to memory manager
- disallow mapping on cpu for cpu inaccessible memory
Change-Id: I5437a06efd4dd32940b603a15ff98a40091e2b04
2018-09-28 15:55:55 +02:00
Maciej Godek
2ad5108380
Clarified dependencies in Context::getSupportedImageFormats
...
Change-Id: Iaa09a2b572b3ae6d0533378f0ecf227bd90b1a10
2018-09-27 18:41:18 +02:00
Hoppe, Mateusz
65565acdaf
Refactor Buffer::create
...
- simplify conditions by separation
- reorder some calls
- pass allocateMemory to AllocationFlags
Change-Id: Iab6fd35f9b9c10bfbc19058e69058346ef87dad8
2018-09-27 18:16:54 +02:00
Hoppe, Mateusz
330b9eddbd
Upload data to cpu inaccessible memory with enqueueWriteBuffer
...
Change-Id: Ibb33c4248fd0cb4338c82a9deb3994147c0acba5
2018-09-27 18:09:01 +02:00
Woloszyn, Wojciech
f624ec757b
Unify mipmap layout accross platforms
...
- revert "Fix reported row/slicePitch for mip-maps"
- calculate mipmap offset without gmm
Change-Id: Id4802ef9624ad330e0d0f871dfa4d4fc35a7ba33
2018-09-25 16:27:43 +02:00
Hoppe, Mateusz
5aae5a3d62
Rename DeviceIndex to DevicesBitfield to reflect type usage
...
Change-Id: Ic5ac1d2d49082dc3c6e98c1fa5178b93ec9ddf56
2018-09-24 14:46:19 +02:00
Mrozek, Michal
328ecae57d
Change the error checking in checkExtraMemFlagsForBuffer
...
Change-Id: I598b5789c567a398c75355813a44ea647ff6cd0d
2018-09-21 21:36:04 +02:00
Artur Harasimiuk
40146291ad
Update copyright headers
...
Updating files modified in 2018 only. Older files remain with old style
copyright header
Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00
Mrozek, Michal
78f828fcd1
Make residency in graphics allocation OsContext dependent.
...
- Graphics Allocation now holds residency control per OsContext.
Change-Id: Ie0a0d3aa9fdaf542fdd42dee3aba236a5af635c7
2018-09-20 16:44:04 +02:00
Venevtsev, Igor
7c94409ce8
Change MemoryManager::allocateGraphicsMemoryInPreferredPool() signature.
...
Remove allocateMemory param.
Add AllocationFlags and DeviceIndex params.
Change-Id: I3ba048f8ea9840a047a3222dc1e97be2105c2222
2018-09-20 13:04:21 +02:00
Mrozek, Michal
377b99be90
Pass device index to create method..
...
Change-Id: Iab493edf1b96a6cecf6e3dba6813824529f0c08b
2018-09-11 16:26:54 +02:00
Hoppe, Mateusz
d159d3bdb6
Add add_subdirectories() to unit_tests/mem_obj cmakelists.txt
...
Change-Id: I904240cbb26f21337d91bdc0f5d4fb4a80eeb15a
2018-09-06 15:03:43 +02:00
Hoppe, Mateusz
5f7b6db893
Validate buffer flags with helper
...
Change-Id: Iaaf04bbe6e5237da0183556fa1ee10817faaf5c0
2018-09-05 14:10:21 +02:00
Pawel Wilma
4a12deea2b
Add support for reduced GPU address space
...
Change-Id: I9ebbc8c51039bb533b44c6b80e717e1489a20a43
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2018-09-03 13:51:36 +02:00
Mateusz Jablonski
92bfd2e3d2
Move OsContext to Device
...
Change-Id: I030b65372fbdc075423d22720e9da34ac65b8e68
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-09-03 10:42:26 +02:00
Hoppe, Mateusz
aaf2f94887
Fix zeroCopy property for images
...
- zeroCopy means no need for data transfer when cpu transfer is
chosen during map/unmap operations
- tests cleanup
Change-Id: Id312267e51d593781c6fe536b6e96f42f32e5c02
2018-08-23 16:45:05 +02:00
Cetnerowski
8647e0c349
Improve KernelInfo handling:
...
Remove wrapper for KernelInfo constructor
Switch to unique pointer where possible
Change-Id: Ib3f323e34836e1d189d836fd539ab45518609610
2018-08-23 13:55:28 +02:00
Milczarek, Slawomir
f6f9c0f456
Add notify functions to enqueue read buffer and image calls
...
This commit adds notifications to enqueue read buffer and image calls
and setters/getters to mark/check if an allocation is dumpable.
Change-Id: I123f24752d2a86abcf934e0d404f4e0ecf1729cc
2018-08-22 21:43:17 +02:00
Maciej Dziuban
e0e48203d2
Move BuiltIns to ExecutionEnvironment
...
Change-Id: Ib2a1b82cc7858c898bb32820aad106a01d1325ad
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-08-21 23:15:47 +02:00
Dunajski, Bartosz
931b462ee1
Disable NonAux to Aux translation for Parent Kernel
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Change-Id: I863608fe3652e7e777a1e841d79b5b56e7362a3f
2018-08-21 15:12:25 +02:00
Stefanowski, Adam
1ad70dfebe
Decouple memory manager and device
...
Change-Id: Ia64cc955e1d290cad4c50b6a2a41052d9acf0eec
2018-08-20 13:44:31 +02:00
Maciej Dziuban
524737af39
Add executionEnvironment field to Program
...
Change-Id: Id624177aa3f0b5525bac86e2e0a935ebaf53480e
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-08-16 16:52:41 +02:00
Dunajski, Bartosz
3469539798
Remove UNRECOVERABLE_IF from setArgBuffer
...
Change-Id: I7cddad0fc902489139b26e655cb301de0dda422c
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-08-14 15:21:53 +02:00
Kamil Diedrich
d3d8b6f905
change ARRAY_COUNT macro to constexpr
...
Change-Id: I027c4e70e3b901f3ffb3c0971935ae67e971db07
2018-08-14 10:04:58 +02:00
Lukasz Towarek
78f505f4f4
Return CL_INVALID_ARG_SIZE instead of CL_INVALID_ARG_VALUE
...
Change-Id: Ia8792035e19a450f1399f8be3287ef46d0d6609d
2018-08-13 13:31:55 +02:00
Woloszyn, Wojciech
93c1a7b51b
Fix mipmaps return values
...
Change-Id: I6e7cdc69edc80010a0c6f5f337e6b530278a6606
2018-08-13 11:56:07 +02:00
Woloszyn, Wojciech
53d99ead24
Fix sampler lifecycle
...
- Add refcount to sampler to avoid use after free
Change-Id: I0f03d8ed29b5b9dc5bee355ed266ac7437e92509
2018-08-13 10:13:08 +02:00
Maciej Dziuban
6f26ced3b5
Don't store MockProgram as member of fixture
...
This is to prepare for adding argument to MockProgram constructor. It'll have
to be constructed after ExecutionEnvironment creation, for example after
DeviceFixture::SetUp.
Change-Id: I37b08f814679271820a07fb29cf1fb6b517c8376
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-08-10 10:13:33 +02:00
Mrozek, Michal
1599ea800e
Pass execution environment to command stream receiver.
...
Change-Id: I598f67f8b005b5ce8249b638e080657eb6dc3547
2018-08-08 17:10:39 +02:00
Dunajski, Bartosz
f0e53d5cf1
Add UNRECOVERABLE_IF for unexpected builtIn setArgBuffer scenario
...
Change-Id: I87a5c373eae9c833239e0eb4dca6f1660c763a86
2018-08-08 13:18:34 +02:00
Dunajski, Bartosz
bd9ac40bab
Set non-aux mode for non-pure stateful kernel arguments
...
Change-Id: Id59fc3ae966a1f6632a24cbcfca3fb0aef0dd76d
2018-08-03 09:47:49 +02:00
Mrozek, Michal
1807ea651c
Initialize tag value in init function.
...
- remove not needed method in mock device.
- remove duplication from aub tests.
- tag allocation now have desired value
Change-Id: Ib3161cce6753eae27c60fddb63054fd2e12f7dac
2018-08-03 09:25:26 +02:00
Mateusz Jablonski
1bc7275de7
Fix false positive memory leak in buffer tests
...
Remove platform fixture from buffer tests
Change-Id: Iea0e40c31c2a7ea9e7eab9e60b9d06ba56f0effe
2018-08-03 08:11:14 +02:00
Mateusz Jablonski
9ae4f390d1
Remove command queue, completion stamp and device from mem obj
...
Remove setCompletionStamp function from Surface
Change-Id: I25f3040a91892495e55cb4924f1538276de6264e
2018-08-01 16:17:13 +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
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
98061903aa
Remove device helper
...
Change-Id: Ie66c029359a62b81c8658d804dcf8565647100f1
2018-07-26 14:10:05 +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
Dunajski, Bartosz
3a807d5643
Render compressed buffer creation flow
...
Change-Id: I58b7f7eb3b69afcb78c6ab3de1f6fb7524d33f13
2018-07-23 15:29:47 +02:00
Dunajski, Bartosz
512978768e
Pass renderCompressed information to GMM for 64kb allocations
...
Change-Id: I56302055c028e919bceeb3333557cab7451e1d09
2018-07-23 11:28:43 +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
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
Pawel Wilma
fd6224ae4e
Set clear color parameters in surface state
...
Change-Id: I6b2c87394495366756bf471dd830ccd1c715acc4
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2018-07-17 13:43:17 +02:00
Hoppe, Mateusz
55a045ebe1
Refactor graphics memory allocation scheme
...
- replace createGraphicsAllocationWithRequiredBitness with more general
methodallocateGraphicsMemoryInPreferredPool based on passed
AllocationData
- proper flags for allocation selected based on AllocationType
- remove allocateGraphicsMemory(size_t size, size_t alignment)
and use allocateGraphicsMemory(size_t size) instead where default
alignment is sufficient, otherwise use full options version:
allocateGraphicsMemory(size_t size, size_t alignment,
bool forcePin, bool uncacheable)
Change-Id: I2da891f372ee181253cb840568a61b33c0d71fc9
2018-07-11 15:48:05 +02:00
Maciej Dziuban
4993a94b5b
Prepare for future changes
...
- Implement changing MemObj's GraphicsAllocation
- Create function for resolving change of SharedHandler's GraphicsAllocation
Change-Id: Ibd975070ca11ba8591f5561d9f02bf5d9af1636b
2018-07-11 15:36:38 +02:00
Dunajski, Bartosz
a1d7d42c69
Remove Aux pitch/qpitch/baseAddress programming
...
Change-Id: I836bb33c9b4328f67be88739c83290972a03288c
2018-07-11 13:06:21 +02:00
Dunajski, Bartosz
e527a439cd
Disable CPU operations for renderCompressed GMM resources
...
Change-Id: I4396460cab1e030717ea85590775eea0ea92f9db
2018-07-09 16:15:13 +02:00