Add hwhelper function allowRenderCompressionForContext

Rename and unify compression related functions.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-11-10 12:53:38 +01:00
committed by Compute-Runtime-Automation
parent e096e5b0f8
commit ed04053007
9 changed files with 21 additions and 13 deletions

View File

@@ -190,7 +190,7 @@ Buffer *Buffer::create(Context *context,
*context,
HwHelper::renderCompressedBuffersSupported(*hwInfo),
memoryManager->isLocalMemorySupported(rootDeviceIndex),
HwHelper::get(hwInfo->platform.eRenderCoreFamily).obtainRenderBufferCompressionPreference(*hwInfo, size));
HwHelper::get(hwInfo->platform.eRenderCoreFamily).isBufferSizeSuitableForRenderCompression(size));
if (ptr) {
if (!memoryProperties.flags.useHostPtr) {