Skip to content

Commit

Permalink
[XeSDK] Enable STD GPU output support
Browse files Browse the repository at this point in the history
Enable STD GPU output support for performance opt
  • Loading branch information
Yanfeng-Mi authored and intel-mediadev committed Mar 26, 2023
1 parent 2aa5cff commit d37ec9a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 4 additions & 3 deletions media_common/agnostic/common/vp/hal/vp_common_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,10 @@ typedef struct _VPHAL_STE_PARAMS
//!
typedef struct _VPHAL_STD_PARAMS
{
uint32_t paraSizeInBytes = 0;
void *param = nullptr;
unsigned long long sysMem = 0;
uint32_t paraSizeInBytes = 0;
void *param = nullptr;
unsigned long long sysMem = 0;
bool bOutputSkinScore = false;
} VPHAL_STD_PARAMS, *PVPHAL_STD_PARAMS;

//!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,12 @@ class SwFilterSte : public SwFilter
virtual MOS_STATUS Update(VP_SURFACE* inputSurf, VP_SURFACE* outputSurf, SwFilterSubPipe &pipe);
virtual MOS_STATUS SetResourceAssignmentHint(RESOURCE_ASSIGNMENT_HINT &hint)
{
hint.isSkinScoreDumpNeededForSTDonly = m_Params.bEnableSTD;
if (m_Params.bEnableSTD)
{
hint.isSkinScoreDumpNeededForSTDonly = !m_Params.STDParam.bOutputSkinScore;
hint.isSkinScoreOutputNeededForSTDOnly = m_Params.STDParam.bOutputSkinScore;
}

return MOS_STATUS_SUCCESS;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ using PCVP_PIPELINE_PARAMS = const VPHAL_RENDER_PARAMS*;
uint32_t isHVSTableNeeded : 1;

#define RESOURCE_ASSIGNMENT_HINT_BITS_STD_ALONE \
uint32_t isSkinScoreDumpNeededForSTDonly : 1;
uint32_t isSkinScoreDumpNeededForSTDonly : 1; \
uint32_t isSkinScoreOutputNeededForSTDOnly : 1;

#define RESOURCE_ASSIGNMENT_HINT_BITS \
RESOURCE_ASSIGNMENT_HINT_BITS_DI \
Expand Down

0 comments on commit d37ec9a

Please sign in to comment.