Prefer render compression for tiled images

Change-Id: I1ae1cf9a5cfdc54ab4d889456e252cd1f9860883
This commit is contained in:
Dunajski, Bartosz
2018-01-17 09:38:40 +01:00
committed by sys_ocldev
parent 764f686ad9
commit a9a24e82e5
2 changed files with 58 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ Image *Image::create(Context *context,
auto hostPtrRowPitch = imageDesc->image_row_pitch ? imageDesc->image_row_pitch : imageWidth * surfaceFormat->ImageElementSizeInBytes;
auto hostPtrSlicePitch = imageDesc->image_slice_pitch ? imageDesc->image_slice_pitch : hostPtrRowPitch * imageHeight;
auto isTilingAllowed = context->isSharedContext ? false : Gmm::allowTiling(*imageDesc);
imgInfo.preferRenderCompression = isTilingAllowed;
bool zeroCopy = false;
bool transferNeeded = false;