Skip to content

Commit 83a9966

Browse files
pengwan1intel-mediadev
authored andcommitted
[Decode][PDVT-SH] Refactor HEVC decode pipeline inheritance hierarchy
* [Decode] Refactor HEVC decode pipeline inheritance hierarchy Refactored HEVC decode pipeline adapter and pipeline classes to use inheritance from previous generation base classes. Moved common functionality to base classes, reducing code duplication by ~540 lines. The adapter now inherits from previous generation adapter and only overrides Allocate() to instantiate platform-specific pipeline. Pipeline class similarly inherits from previous generation and only overrides CreateSubPackets(). Command counter register handling moved from base MMIO structure to extension structure for better modularity. This change improves code maintainability and reduces duplication across platform variants.
1 parent 80fc4cc commit 83a9966

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_hcp_cmdpar.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ struct HcpMmioRegisters
113113
uint32_t hcpDecStatusRegOffset;
114114
uint32_t hcpCabacStatusRegOffset;
115115
uint32_t hcpFrameCrcRegOffset;
116-
uint32_t hcpCommandCounterRegOffset;
117-
uint32_t hcpCommandCounterOverrideRegOffset;
118116
};
119117

120118
struct HcpBufferSizePar

media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_hcp_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,6 @@ class Impl : public Itf, public mhw::Impl
764764
mmioRegisters->hcpDecStatusRegOffset = HCP_DEC_STATUS_REG_OFFSET_INIT;
765765
mmioRegisters->hcpCabacStatusRegOffset = HCP_CABAC_STATUS_REG_OFFSET_INIT;
766766
mmioRegisters->hcpFrameCrcRegOffset = HCP_FRAME_CRC_REG_OFFSET_INIT;
767-
mmioRegisters->hcpCommandCounterRegOffset = HCP_COMMAND_COUNTER_REG_OFFSET_INIT;
768-
mmioRegisters->hcpCommandCounterOverrideRegOffset = HCP_COMMAND_COUNTER_OVERRIDE_REG_OFFSET_INIT;
769767

770768
m_mmioRegisters[MHW_VDBOX_NODE_2] = m_mmioRegisters[MHW_VDBOX_NODE_1];
771769
}

0 commit comments

Comments
 (0)