Skip to content

Commit

Permalink
[Encode] Fix coverity issues
Browse files Browse the repository at this point in the history
Fix coverity issues.
  • Loading branch information
Bossonor authored and intel-mediadev committed Sep 26, 2023
1 parent 2977bdb commit 11326a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ class CodechalEncoderState : public Codechal
MEDIA_SYSTEM_INFO *m_gtSystemInfo = nullptr; //!< GT system infomation
MOS_GPU_NODE m_videoGpuNode = MOS_GPU_NODE_MAX; //!< GPU node of video
MOS_GPU_CONTEXT m_videoContext = MOS_GPU_CONTEXT_INVALID_HANDLE; //!< GPU context of video
MOS_GPU_CONTEXT m_videoContextExt[4]; //!< Extand GPU context
MOS_GPU_CONTEXT m_videoContextExt[4] = {}; //!< Extand GPU context
MOS_GPU_CONTEXT m_renderContext = MOS_GPU_CONTEXT_INVALID_HANDLE; //!< GPU context of render
bool m_pakEnabled = false; //!< flag to indicate if PAK is enabled
bool m_encEnabled = false; //!< flag to indicate if ENC is enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2165,13 +2165,13 @@ class CodechalVdencHevcStateG12 : public CodechalVdencHevcState
};
};

PMHW_VDBOX_HCP_TILE_CODING_PARAMS_G12 m_tileParams[CODECHAL_NUM_UNCOMPRESSED_SURFACE_HEVC]; //!< Pointer to the Tile params
PMHW_VDBOX_HCP_TILE_CODING_PARAMS_G12 m_tileParams[CODECHAL_NUM_UNCOMPRESSED_SURFACE_HEVC] = {}; //!< Pointer to the Tile params

// GEN12 specific resources
MOS_RESOURCE m_vdencTileRowStoreBuffer; //!< Tile row store buffer
MOS_RESOURCE m_vdencTileRowStoreBuffer = {}; //!< Tile row store buffer
MOS_RESOURCE m_vdencCumulativeCuCountStreamoutSurface = {}; //!< Cumulative CU Count Streamout Surface
MOS_RESOURCE m_vdencPaletteModeStreamOutBuffer = {}; //!< Palette mode stream out buffer
MOS_RESOURCE m_vdencSAORowStoreBuffer; //!< SAO RowStore buffer
MOS_RESOURCE m_vdencSAORowStoreBuffer = {}; //!< SAO RowStore buffer
MOS_RESOURCE m_resHwCountTileReplay = {}; //!< Tile based HW Counter buffer

bool m_enableTileStitchByHW = false; //!< Enable HW to stitch commands in scalable mode
Expand Down

0 comments on commit 11326a6

Please sign in to comment.