Skip to content

Commit

Permalink
[CP] Fix H2H issue
Browse files Browse the repository at this point in the history
Fix H2H issue. Align with XE/XE2 upstream rename DW17 bit and set it as 0. Due to DW16 and DW17 is the 3D LUT TABLE address, when VP call add res to command for DW16, DW17 is changed, so need set DW17 remaining bit.
  • Loading branch information
peiranzh authored and intel-mediadev committed Dec 12, 2024
1 parent bc9ae4d commit 040bf53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5212,7 +5212,8 @@ class Cmd
uint32_t Lut3DStatePointerHigh : __CODEGEN_BITFIELD( 0, 15) ; //!< 3D LUT State Pointer High
uint32_t Lut3DMocsTable : __CODEGEN_BITFIELD(16, 21) ; //!< 3D LUT MOCS table
uint32_t ChannelMappingSwapForLut3D : __CODEGEN_BITFIELD(22, 22) ; //!< Channel mapping swap for 3D LUT
uint32_t Reserved567 : __CODEGEN_BITFIELD(23, 29) ; //!< Reserved
uint32_t Reserved567 : __CODEGEN_BITFIELD(23, 28) ; //!< Reserved
uint32_t EncDataControlFor3DLUT : __CODEGEN_BITFIELD(29, 29) ; //!< Enc data control - For 3D LUT
uint32_t ArbitrationPriorityControlForLut3D : __CODEGEN_BITFIELD(30, 31) ; //!< ARBITRATION_PRIORITY_CONTROL_FOR_3D_LUT
};
uint32_t Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3594,6 +3594,7 @@ class Impl : public vebox::Impl<mhw::vebox::xe3_lpm_base::Cmd>
MOS_HW_RESOURCE_USAGE_VP_INTERNAL_READ_WRITE_FF,
pOsInterface->pfnGetGmmClientContext(pOsInterface))).DwordValue;

cmd.DW17.EncDataControlFor3DLUT = 0;
cmd.DW17.ChannelMappingSwapForLut3D = params.LUT3D.ChannelMappingSwapForLut3D; // B->Y, G->U, R->V for DV Perf

cmd.DW17.ArbitrationPriorityControlForLut3D = params.LUT3D.ArbitrationPriorityControl;
Expand Down

0 comments on commit 040bf53

Please sign in to comment.