-
Notifications
You must be signed in to change notification settings - Fork 347
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 Common][VP] fix compressed surface width not align with 32 and seg fault #1699
Conversation
1181d06
to
bacfc22
Compare
47e05bc
to
599340a
Compare
@@ -5192,7 +5192,7 @@ VAStatus SwizzleSurface(PDDI_MEDIA_CONTEXT mediaCtx, PGMM_RESOURCE_INFO pGmmResI | |||
|
|||
memset(&gmmResCopyBlt, 0x0, sizeof(GMM_RES_COPY_BLT)); | |||
uiPicHeight = pGmmResInfo->GetBaseHeight(); | |||
uiSize = pGmmResInfo->GetSizeSurface(); | |||
uiSize = pGmmResInfo->GetSizeMainSurface(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's "main" , compare with aux plan of compressed surface ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MainSize is not include auxplan. We need pass the right size correspondent right Plane number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does pGmmResInfo->CpuBlt support MMC?
if not, only support non-compressed surface
GetSizeSurface should be same as GetSizeMainSurface?
@@ -663,7 +663,37 @@ MOS_STATUS MediaVeboxDecompState::GetResourceInfo(PMOS_SURFACE surface) | |||
&resDetails)); | |||
|
|||
surface->Format = resDetails.Format; | |||
#ifdef LINUX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@XinfengZhang Can we add such macro?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we can. We can add such macro in mos layer. you can find such macro on this cpp file.
599340a
to
69c15c7
Compare
69c15c7
to
5fba540
Compare
5fba540
to
fdc0925
Compare
fdc0925
to
ca1abd0
Compare
caused by wrong plane number
293f324
to
c887e36
Compare
@Dylan-debug could you rebase the patch for merging? |
merged in 5621e3f |
fix compressed surface width not align with 32 and seg fault caused by wrong plane number passed to gmm
Signed-off-by: caij [email protected]