mirror of https://github.com/intel/gmmlib.git
Merge 3cf0ef7abd
into 37cac4f8b2
This commit is contained in:
commit
2f80a6c17e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue