Skip to content

Commit e2f20ff

Browse files
yuqian0321intel-mediadev
authored andcommitted
[CP] Enable CP command queue ownership in driver
* [CP] Enable cp command queue ownership in driver Changed cp command queue ownership from application to driver for CP operations. Driver now creates and manages its own command queue for cp operations instead of sharing the application's queue. Updated command queue initialization to support null hRTCommandQueue handle, using device callbacks for queue/context creation and destruction. Fixed memory leaks in destructor by properly cleaning up command pool and list pointers. Removed cp queue handling from video decode/process/encode queue creation path. Added MT_CP_CMD_QUEUE_INIT trace event to log command queue initialization errors. This enhances debugging capability by capturing the error status and return value when command queue creation fails.
1 parent 82b86d2 commit e2f20ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

media_common/agnostic/common/os/mos_os_trace_event.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2023, Intel Corporation
2+
* Copyright (c) 2015-2026, Intel Corporation
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
55
* copy of this software and associated documentation files (the "Software"),
@@ -665,6 +665,7 @@ typedef enum _MT_LOG_ID
665665
MT_CP_FUNC_FAIL,
666666
MT_CP_CENC_STATUS_CHECK,
667667
MT_CP_CENC_DECODE_CREATE,
668+
MT_CP_CMD_QUEUE_INIT,
668669
MT_CP_MHW_ID_BASE = 0x01004000,
669670
MT_CP_MHW_INTERFACE_CREATE_FAIL,
670671
MT_CP_MHW_ALLOCATION_FAIL,

0 commit comments

Comments
 (0)