This commit is contained in:
Herman Semenoff 2025-05-05 02:45:29 +00:00 committed by GitHub
commit 2f80a6c17e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -87,13 +87,16 @@ public:
mResInfo = pGmmULTClientContext->CreateResInfoObject(&gmmParams);
if(!mResInfo)
return false;
size = mResInfo->GetSizeSurface();
alignment = mResInfo->GetResFlags().Info.TiledYf ? GMM_KBYTE(16) : GMM_KBYTE(64);
mBuf = aligned_alloc(alignment, ALIGN(size, alignment));
if(!mResInfo || !mBuf)
if(!mBuf)
return false;
mYBase = (GMM_GFX_ADDRESS)mBuf;