|
50 | 50 | #include "mos_oca_interface.h" |
51 | 51 | #include "mos_cache_manager.h" |
52 | 52 |
|
| 53 | +class MhwInterfacesNext; |
53 | 54 | #define MOS_NAL_UNIT_LENGTH 4 |
54 | 55 | #define MOS_NAL_UNIT_STARTCODE_LENGTH 3 |
55 | 56 | #define MOS_MAX_PATH_LENGTH 256 |
@@ -254,12 +255,15 @@ typedef int32_t MOS_SUBMISSION_TYPE; |
254 | 255 | #define EXTRA_PADDING_NEEDED 4096 |
255 | 256 | #define MEDIA_CMF_UNCOMPRESSED_WRITE 0xC |
256 | 257 |
|
| 258 | +struct _MHW_BATCH_BUFFER; |
| 259 | +typedef struct _MHW_BATCH_BUFFER MHW_BATCH_BUFFER, * PMHW_BATCH_BUFFER; |
257 | 260 | //! |
258 | 261 | //! \brief Structure to command buffer |
259 | 262 | //! |
260 | 263 | typedef struct _MOS_COMMAND_BUFFER |
261 | 264 | { |
262 | 265 | MOS_RESOURCE OsResource; //!< OS Resource |
| 266 | + PMHW_BATCH_BUFFER syncMhwBatchBuffer; //!< Pointer to sync mhw batch buffer |
263 | 267 |
|
264 | 268 | // Common fields |
265 | 269 | uint32_t *pCmdBase; //!< Base address (CPU) |
@@ -573,7 +577,7 @@ struct MosStreamState |
573 | 577 | uint32_t dwEnableMediaSoloFrameNum = 0; //!< The frame number at which MediaSolo will be enabled, 0 is not valid. |
574 | 578 | int32_t bSoloInUse = 0; //!< Flag to indicate if MediaSolo is enabled |
575 | 579 | #endif // MOS_MEDIASOLO_SUPPORTED |
576 | | - |
| 580 | + MhwInterfacesNext *mhwInterface = nullptr; |
577 | 581 | }; |
578 | 582 |
|
579 | 583 | // OS agnostic MOS objects |
@@ -2056,6 +2060,8 @@ typedef struct _MOS_INTERFACE |
2056 | 2060 |
|
2057 | 2061 | bool (*pfnGetCacheSetting)(MOS_COMPONENT id, uint32_t feature, bool bOut, ENGINE_TYPE engineType, MOS_CACHE_ELEMENT &element, bool isHeapSurf); |
2058 | 2062 |
|
| 2063 | + bool (* pfnIsGpuSyncByCmd) (PMOS_INTERFACE osInterface); |
| 2064 | + |
2059 | 2065 | // Virtual Engine related |
2060 | 2066 | int32_t bSupportVirtualEngine; //!< Enable virtual engine flag |
2061 | 2067 | int32_t bUseHwSemaForResSyncInVE; //!< Flag to indicate if UMD need to send HW sema cmd under this OS when there is a resource sync need with Virtual Engine interface |
@@ -2094,6 +2100,7 @@ typedef struct _MOS_INTERFACE |
2094 | 2100 |
|
2095 | 2101 | //!< os interface extension |
2096 | 2102 | void *pOsExt; |
| 2103 | + MhwInterfacesNext *mhwInterface; |
2097 | 2104 | } MOS_INTERFACE; |
2098 | 2105 |
|
2099 | 2106 | #ifdef __cplusplus |
|
0 commit comments