Commit Graph

272 Commits

Author SHA1 Message Date
Mateusz Jablonski d45c16dfc2 fix: add fallback for invalid handles in extension functions
handle context, commandlist, driver, device, event, image and kernel handles

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-28 17:22:35 +02:00
Jack Myers 9dba608932 refactor: collate ze_structure_type_t macros
Collated all ze_structure_type_t `#define`
macros into a single header. By doing so,
all hex values associated with L0 extensions
are in one file. The two new headers are
included in the API headers shared among
extension implementations, making the
in-use hex values and types easy to find
for extension developers.

Related-To: NEO-11754
Signed-off-by: Jack Myers <jack.myers@intel.com>
2024-07-19 23:17:42 +02:00
Kulkarni, Ashwin Kumar a1c15371c1 feature(sysman): supports new device UUID mapping APIs
Related-To: NEO-10236

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-07-05 15:56:14 +02:00
Bartosz Dunajski bb21d25ed0 feature: initial support for creating media context
Related-To: NEO-11386

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-07-03 12:23:31 +02:00
Michal Mrozek ef37b140de performance: allow non cb events address extraction
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-06-27 16:55:25 +02:00
Neil R. Spruit 0daa0335cf feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-24 20:56:28 +02:00
Compute-Runtime-Validation 7a299ab073 Revert "feature: Define L0 Driver API for Driver Version String"
This reverts commit c51329d098.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-24 03:41:47 +02:00
Neil R. Spruit c51329d098 feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-21 18:31:43 +02:00
Compute-Runtime-Validation 7a74fdb414 Revert "feature: Define L0 Driver API for Driver Version String"
This reverts commit f3ce3b5e81.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-21 03:14:40 +02:00
Neil R. Spruit f3ce3b5e81 feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-20 20:35:31 +02:00
Bartosz Dunajski 45cf88077b refactor: unify cooperative cmd list launch functions
Related-To: NEO-11621

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-06-20 14:47:01 +02:00
Bartosz Dunajski 64af8dd956 feature: allocating interrupt support
Related-To: NEO-8179

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-06-03 18:35:24 +02:00
Aravind Gopalakrishnan 0eaed66334 feature: Append recorded command list into immediate (1/N)
Related-To: NEO-10356

- Refactoring wait on event to skip flush when needed
- Refactor execute call interface to accept linear stream
- Program wait on events in new interface

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-05-29 05:59:32 +02:00
Aravind Gopalakrishnan 95cd6c5d0b feature: Add ddi table entry for GetPitch function
Related-To: NEO-7063

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-05-21 07:50:28 +02:00
Bartosz Dunajski 1d456c8c53 feature: api definition to expose media caps
Related-To: NEO-9777

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-17 15:03:11 +02:00
Bartosz Dunajski bb2e2ee4e1 feature: Change doorbell handle from uint64_t to extendable struct
Related-To: NEO-11386

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-13 17:42:26 +02:00
Michal Mrozek f7b6dfff52 fix: allow nullptr addresses while creating cb event.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-05-10 16:59:12 +02:00
Bartosz Dunajski 279dc77e9e fix: improve media communication API
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-10 15:03:56 +02:00
Bartosz Dunajski 536698d276 fix: add profiling data to host signalled CB Event
Related-To: NEO-11378

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-10 11:16:20 +02:00
Bartosz Dunajski 2e2c716f00 feature: API stubs for media communication
Related-To: NEO-11386

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-09 17:09:15 +02:00
Mateusz Hoppe 76af952fcb feature: Bindless sampled image support
Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-05-08 17:50:37 +02:00
Aravind Gopalakrishnan d0fd62a98f fix: Fix immediate command list append header definition
Related-To: NEO-10356

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-05-07 11:39:49 +02:00
Bartosz Dunajski ce36812f8d feature: obtain GraphicsAllocation from external CB event
Related-To: NEO-8179

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-06 22:52:36 +02:00
Zbigniew Zdanowicz e2a3c21e1c feature: add mcl functions to dispatch table
Related-To: NEO-10062

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-05-06 16:28:25 +02:00
Kulkarni, Ashwin Kumar 39ca00fb08 feature(sysman): supports boilerplate for spec 1.9 features
Related-To: NEO-10394

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-04-24 09:17:38 +02:00
Aravind Gopalakrishnan 6a894f963e feature: Implement zeCommandListImmediateAppendCommandListsExp [2/N]
Add boiler plate for appendCommandLists

Related-To: NEO-10356

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-04-18 15:50:12 +02:00
Bartosz Dunajski dd6040ab6e refactor: improve exp extension names
Related-To: NEO-8179

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-18 11:09:23 +02:00
Joshua Santosh Ranjan e0a580fce7 feature: Support for concurrent groups
Related-To: NEO-10306

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-04-18 09:41:12 +02:00
Bartosz Dunajski b3b72d0e37 feature: experimental api for synchronized dispatch
Related-To: NEO-8171

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-15 14:25:22 +02:00
Bartosz Dunajski 159e67186d feature: new msix related API stubs
Related-To: NEO-8179

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-15 11:19:18 +02:00
Mateusz Jablonski a91e438749 fix: fill ddi entries based on required version
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-04-10 14:04:37 +02:00
Mateusz Jablonski 15b59b145e fix: correct filling ddi table entries 2/n
fill entry only when proper version is requested

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-04-10 09:19:54 +02:00
Mateusz Jablonski 898cff1512 fix: correct filling ddi table entries 1/n
fill entry only when proper version is requested

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-04-09 14:23:15 +02:00
Wenju He 8acb4678fb feature: implement zeCommandListAppendImageCopyToMemoryExt/FromMemoryExt
This PR implements these two APIs defined in Level Zero spec.
They are required for SYCL bindless tests read_write_*D_subregion.cpp.

Related-To: GSD-4137
Signed-off-by: Wenju He <wenju.he@intel.com>
2024-03-26 08:55:25 +01:00
Young Jin Yoon add1ff4902 fix: ddi table for event pool introspection APIs
Modified event pool ddis for introspection APIs to be included
only when level-zero 1.9 or above is used.

Related-To: NEO-10265
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2024-03-12 16:57:16 +01:00
Zbigniew Zdanowicz b37c57c92b feature: add wait command list argument
Related-To: NEO-10065

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-03-05 15:44:20 +01:00
Joshua Santosh Ranjan a3e60acc8f refactor: refactor metric programmable to use open source
Related-To: NEO-10451

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-03-01 06:36:25 +01:00
Young Jin Yoon 4e7f225ab1 feature: Modify ddi tables for introspection APIs
Added version check to ensure new functions will be updated into ddi
table only when level_zero version is 1.9.

Related-To: NEO-10265
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2024-02-28 09:54:24 +01:00
Dunajski, Bartosz 5d6ce43cf9 fix: return correct device address for standalone CB Event
Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-19 11:35:30 +01:00
Aravind Gopalakrishnan 618f1dd346 feature: Implement zeCommandListImmediateAppendCommandListsExp [1/N]
Prepare execute call to accept event args

Related-To: NEO-10356

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-02-15 17:09:03 +01:00
Dunajski, Bartosz 5085300449 feature: query to get kernel/module register sizes
Related-To: NEO-7357

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-15 13:00:00 +01:00
Mateusz Hoppe 3051c5ef2b feature: bindless image extension
- support for zeMemGetPitchFor2dImage() and
zeImageGetDeviceOffsetExp()

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-14 21:11:31 +01:00
Mateusz Hoppe 22802d8680 feature: add ZE_experimental_bindless_image extension
- add definitions and functions
- Level Zero spec commit: 49c972463796e614597b028bd344e1b2f64a63b7

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-13 15:06:41 +01:00
Yoon, Young Jin 22f761b4eb feature: Add introspection APIs for event
Added entrypoints for all event-related introspection APIs
and implemented corresponding functions in Event and EventPool.

Modified Event to record its EventPool upon creation.

Related-To: NEO-10265
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-07 11:48:28 +01:00
Yoon, Young Jin dac2af299b feature: Add introspection APIs for cmdlist
Added entrypoints for all command-list-related introspection APIs
and implemented corresponding functions in command list.

Modified device to record ordinal when creating command lists.

Related-To: NEO-10265
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-07 07:22:26 +01:00
Yoon, Young Jin 7b12735ade feature: Add introspection APIs for cmdqueue
Added entrypoints for zeCommandQueueGetOrdinal and
zeCommandQueueGetIndex and implemented getOrdinal and getIndex
in command queue.

Related-To: NEO-10265
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-06 07:38:17 +01:00
Dunajski, Bartosz dfc69c746a feature: create InOrderExecInfo for standalone CB Event
Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-01-15 16:56:52 +01:00
Dunajski, Bartosz 9309d7d865 feature: initial support of zexCounterBasedEventCreate 2
Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-01-15 11:47:36 +01:00
Compute-Runtime-Validation 1cc4c6c10f Revert "feature: initial support of zexCounterBasedEventCreate"
This reverts commit d8f8b70dd7.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-01-15 05:41:10 +01:00
Dunajski, Bartosz d8f8b70dd7 feature: initial support of zexCounterBasedEventCreate
Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-01-12 15:11:00 +01:00