Skip to content

Commit

Permalink
Added usage of the ddi common and handle_t
Browse files Browse the repository at this point in the history
Signed-off-by: Neil R. Spruit <[email protected]>
  • Loading branch information
nrspruit committed Nov 22, 2024
1 parent 4305b2a commit a2c0f4b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/drivers/null/ze_null.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "zet_ddi.h"
#include "zes_ddi.h"
#include "ze_util.h"
#include "ze_ddi_common.h"

namespace driver
{
Expand Down
4 changes: 4 additions & 0 deletions source/drivers/null/ze_nullddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ namespace driver
)
{
ze_result_t result = ZE_RESULT_SUCCESS;
ze_handle_t handle = {};
handle.pCore = &context.zeDdiTable;
handle.pTools = &context.zetDdiTable;
handle.pSysman = &context.zesDdiTable;

// if the driver has created a custom function, then call it instead of using the generic path
auto pfnInit = context.zeDdiTable.Global.pfnInit;
Expand Down
1 change: 1 addition & 0 deletions source/layers/validation/ze_validation_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "ze_ddi.h"
#include "zet_ddi.h"
#include "zes_ddi.h"
#include "ze_ddi_common.h"
#include "ze_util.h"
#include "loader/ze_loader.h"
#include "handle_lifetime.h"
Expand Down
1 change: 1 addition & 0 deletions source/lib/ze_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#pragma once
#include "ze_api.h"
#include "ze_ddi.h"
#include "ze_ddi_common.h"
#include "zet_api.h"
#include "zet_ddi.h"
#include "zes_api.h"
Expand Down
1 change: 1 addition & 0 deletions source/lib/ze_libddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "ze_lib.h"
#ifndef DYNAMIC_LOAD_LOADER
#include "ze_ddi.h"
#include "ze_ddi_common.h"
#endif

namespace ze_lib
Expand Down
1 change: 1 addition & 0 deletions source/loader/ze_loader_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "ze_ddi.h"
#include "zet_ddi.h"
#include "zes_ddi.h"
#include "ze_ddi_common.h"

#include "ze_util.h"
#include "ze_object.h"
Expand Down

0 comments on commit a2c0f4b

Please sign in to comment.