Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media driver buffer sharing #18

Open
wants to merge 1 commit into
base: intel-media-kbl
Choose a base branch
from
Open

media driver buffer sharing #18

wants to merge 1 commit into from

Conversation

dylanintel
Copy link

No description provided.

{
usleep(10000); //sleep 10ms for the first frame
iframe++;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments here for just work around, will fix later.

PDDI_MEDIA_CONTEXT mediaCtx = DdiMedia_GetMediaContext(ctx);
DDI_CHK_NULL(mediaCtx, "nullptr mediaCtx", VA_STATUS_ERROR_INVALID_CONTEXT);

mediaCtx->bBltMode = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please initialize the bBltMode in the context initialize stage.

{
DDI_CHK_NULL(attrib_list, "nullptr attrib_list", VA_STATUS_ERROR_INVALID_PARAMETER);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to add check here?

VPHAL_RENDER_ASSERT(pRenderState->GetRenderHalInterface());

pRenderer->pRender[VPHAL_RENDER_ID_VEBOX+pRenderer->uiCurrentChannel]->SetStatusReportParams(pRenderer, pRenderParams);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which place to initialize the "uiCurrentChannel"? Suggest to use VPHAL_RENDER_ID_BLITTER to find the render instance.

@@ -413,6 +413,7 @@ typedef enum _MOS_GPU_CONTEXT
MOS_GPU_CONTEXT_COMPUTE = 14, //Compute Context
MOS_GPU_CONTEXT_CM_COMPUTE = 15, // MDF Compute
MOS_GPU_CONTEXT_MAX = 16,
MOS_GPU_CONTEXT_BLITTER = 17,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please define the MOS_GPU_CONTEXT_BLITTER before MOS_GPU_CONTEXT_MAX.

@hongbolv
Copy link

Please align the the code layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants