Only use blitter on dg1 for allocations with no cpu pointer.

Change-Id: Id52df50f5630461ffc83097d7e74d402599bed56
Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com>
This commit is contained in:
Piotr Zdunowski
2020-08-31 15:34:23 +02:00
committed by sys_ocldev
parent 442b6cfc47
commit a568739061
9 changed files with 34 additions and 13 deletions

View File

@@ -89,8 +89,8 @@ bool is3DPipelineSelectWARequired(const HardwareInfo &hwInfo) {
return (hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP || hwInfo.platform.eProductFamily == IGFX_DG1 || hwInfo.platform.eProductFamily == IGFX_ROCKETLAKE);
}
bool forceBlitterUseForGlobalBuffers(const HardwareInfo &hwInfo) {
if (hwInfo.platform.eProductFamily == PRODUCT_FAMILY::IGFX_DG1) {
bool forceBlitterUseForGlobalBuffers(const HardwareInfo &hwInfo, GraphicsAllocation *allocation) {
if (hwInfo.platform.eProductFamily == PRODUCT_FAMILY::IGFX_DG1 && allocation->getUnderlyingBuffer() == 0) {
return true;
}