Commit Graph

61 Commits

Author SHA1 Message Date
5f8cc9b99b Remove commented code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-15 14:20:17 +01:00
842003f827 Add support for Y210 format in cl_va sharing
Related-To: NEO-7245

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-09-26 10:34:16 +02:00
ffe8c75291 Add missing ULT for va sharing functions
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-08-26 17:36:36 +02:00
2de3cdc90c Add packed formats to import va surface
This patch adds YUY2 and Y210 packed formats into cl/va sharing

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-08-25 18:18:52 +02:00
bca852617c Remove usage of TestLegacy from opencl tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-16 22:16:48 +02:00
5ffeac44c5 Correct shared fixture methods name to meet clang-tidy requirements
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-16 12:52:49 +02:00
e6fc458d4b Add a struct for test fixtures with correct method naming convention
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-11 12:55:52 +02:00
b39be32e20 Add member for handling additional adapterInfo fields
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-08-09 14:11:05 +02:00
fd121d8b6b Move sku_info tests to shared
Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com>
2022-06-14 17:10:52 +02:00
3f04769f07 style: configure readability-identifier-naming.FunctionCase
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-17 20:55:56 +02:00
819e0f5515 style: configure readability-identifier-naming.LocalVariableCase
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 12:39:44 +02:00
107db3a372 Add surfaceId variable to VASurface
Related-To: NEO-6693

Currently if clCreateFromVA and clEnqueueAcquireVA
are called from different scopes (i.e. surfaceID
passed to clCreate is destroyed when called
clEnqueueAcquired) enqueue results in undefined
behaviour. This PR fixes that.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-03-02 12:17:49 +01:00
205571999e Propagate VA syncSurface failure to API call
Currently, if syncSurface method fails, driver
will result in CL_SUCCESS. This PR fixes that.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-02-28 18:34:13 +01:00
a06fbd2077 Remove device enqueue part 10
- remove DeviceQueue

Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-19 17:41:06 +01:00
e4bbed49d0 Use full path to include test.h 1/n
fix files in opencl

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 12:34:34 +01:00
58ebebeec6 Move drm_memory_manager_tests.h and related fixtures to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-21 20:46:58 +02:00
405fb760a7 Include domain when ordering with ZE_ENABLE_PCI_ID_DEVICE_ORDER (3)
Fix for VA sharing.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-21 10:46:27 +02:00
bf25853799 Move some mocks to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-12 21:46:53 +02:00
0b4bc865d3 move drm_mock to shared
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-24 08:55:45 +02:00
1ec3035cb1 rename igdrcl_libult_cs to neo_libult_cs
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-22 10:56:29 +02:00
9bca773b91 Remove command queue constructor
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-07-23 14:16:02 +02:00
4bad959427 ULT renaming: Sharing tests
Related-To: NEO-2236

Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-05-24 15:52:32 +02:00
0e9aa45e46 Improving OS abstraction
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-23 21:40:37 +02:00
3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00
60772197a4 Enable "cl_intel_sharing_format_query" extension
Resolves: NEO-612

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-10 11:05:38 +02:00
2ce63fd368 Cmake cleanup
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-04-27 15:29:14 +02:00
0f2683074d Add synchronization for VA sharing in multi-thread scenarios
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2021-03-12 15:44:45 +01:00
e9e78e85ad Fix image type support and flag usage in va api sharing
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2021-02-26 14:04:07 +01:00
f766e6a4c1 Add tests for linux sys calls
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-02-23 12:21:35 +01:00
edf066a54b Return proper clDevice for given media adapter
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-02-18 21:29:15 +01:00
ef014dad66 Modifications to cl_intel_va_api_media_sharing
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2021-02-16 09:44:13 +01:00
8a700c5187 Move non-ult shared files to single directory
Add SKIP_SHARED_UNIT_TESTS flag

Related-To: NEO-5201
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-02-10 21:03:13 +01:00
ccf9d72019 Revert "Modifications to cl_intel_va_api_media_sharing"
This reverts commit 4c27d46de3.

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-01-27 11:15:15 +01:00
4c27d46de3 Modifications to cl_intel_va_api_media_sharing
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2021-01-27 09:07:11 +01:00
af6ac426f0 ULT renaming: VA Sharing tests
Related-To: NEO-2236

Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-12 18:00:19 +01:00
17051459ea Add P010 and P016 to VAAPI
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2020-12-14 16:53:33 +01:00
818a5a683e Remove Context::processExtraProperties function
Related-To: NEO-4700

Simplify SharingContextBuilder::processProperties function.

Change-Id: I78bbf06c688c37490d9d7f09c9bfc451f1e68d30
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-10-30 14:33:21 +01:00
5d9467b753 Make the EnableVaLibCalls debug key tri-state (-1/0/1)
Related-To: NEO-5110

Change-Id: I56b709e266a091fca68b55ff136690d673773734
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-10-20 13:58:46 +02:00
beeaae0e26 Add new VADevice class to handle clGetDeviceIDsFromVA_APIMediaAdapterINTEL
Related-To: NEO-5110

Change-Id: I72ec529313579959926a77ee91eb23c7c3bcbdbe
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-10-19 10:32:56 +02:00
2a18177ecb Minor fixes for compiler warnings
Change-Id: I25aa3a31d65e3055850c4731da77a83e3b7a41ab
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-09-19 10:59:52 +02:00
7c32681481 Fix for number of used planes in libVA extended formats
Change-Id: I640b5f4d40e41363c793e2995cbf4a8594d655e9
2020-08-27 09:44:51 +02:00
fb821f21f5 Cmake format script
Related-To: NEO-1157

Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
4623707eca Remove parameterless Image::getGraphicsAllocation method
Related-To: NEO-4672
Change-Id: Ib8cebf322d7d2f407627e15746896b315780c6bb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-18 16:12:54 +02:00
0443b97927 initial support for rgbp format
Change-Id: Ib266d6c64482a9b4a4384714a369ad159affd8d9
2020-06-15 14:39:24 +02:00
990f81efea Pass root device index to UpdateData
Related-To: NEO-4672
Change-Id: Ic264aa257bc721b48cd6460bb4843c6e2be213d9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-27 08:55:21 +02:00
147419d4e7 Media sharing on Linux to call finish on enqueue release
If INTEROP_USER_SYNC is not specified during context creation,
clEnqueueReleaseVA_APIMediaSurfaces provides the synchronization.

Change-Id: Ia1d4d570dc37bae9210d92921bf138555aea0c53
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-05-26 12:59:22 +02:00
b7e65150d3 Add the missing keyword and ASSERT
Change-Id: I74f371a4cf7dec808e9bf6ecffbda578e93ef5fd
2020-05-07 11:46:12 +02:00
a5793fc654 A new Linux interface for media sharing to exchange format info
vaExportSurfaceHandle() with DRM_PRIME_2 uses VADRMPRIMESurfaceDescriptor,
where the drm_format_modifier can help passing tiling/compression info.

Related-To: NEO-4452

Change-Id: I1c25df53a6fd185c949156ea099abc7c0b3e11d6
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-05-05 20:07:11 +02:00
2caeb739c3 Refactor libva and OCL sharing to pass in Intel flag
Change-Id: If2580366576b4880fa1a774a2a61cfbceb241835
2020-04-30 16:43:54 +02:00
b0ed3b2ab1 Refactor MemoryPropertiesFlags
Rename:
- MemoryPropertiesFlags to MemoryProperties
- MemoryPropertiesParser to MemoryPropertiesParserHelper
- getMemoryPropertiesFlags to getFlags
- getMemoryPropertiesFlagsIntel to getFlagsIntel
- functions involved with MemoryPropertiesFlags

Related-To: NEO-4143
Change-Id: I4eec67bba95dd5354d0df43c31e6ca724909138e
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-04-28 18:15:25 +02:00