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

replace the swizzle function to Mos_SwizzleData #732

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XinfengZhang
Copy link
Contributor

fixes #715
the swizzleSurface function will call GmmLib::GmmResourceInfoCommon::CpuBlt
and CpuSwizzleBlt, in this function _mm_storeu_si128 will write some invalid memory
it is not rootcause, jus a finding. should not merged until real rootcause is found

Signed-off-by: XinfengZhang [email protected]

fixes intel#715
the swizzleSurface function will call GmmLib::GmmResourceInfoCommon::CpuBlt
and CpuSwizzleBlt, in this function _mm_storeu_si128  will write some invalid memory
it is not rootcause, jus a finding. should not merged until real rootcause is found

Signed-off-by: XinfengZhang <[email protected]>
Copy link
Contributor

@dmitryermilov dmitryermilov left a comment

Choose a reason for hiding this comment

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

Hi @XinfengZhang , this seems to be a workaround. I'd like to remind that while GmmLib::GmmResourceInfoCommon::CpuBlt has SSE optimization, Mos_SwizzleData makes simple per pixel copy. Mos_SwizzleData will kill performance. Why not to fix GmmLib::GmmResourceInfoCommon::CpuBlt?

@XinfengZhang
Copy link
Contributor Author

@dmitryermilov , in my comments, I already marked it "jus a finding. should not merged until real rootcause is found"

@dmitryermilov
Copy link
Contributor

Hi Carl,

Yes, I missed it.

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.

Heap corruption with format conversion
2 participants