P4 to Git Change 1559253 by gandryey@gera-w8 on 2018/05/24 15:44:23

SWDEV-79445 - OCL generic changes and code clean-up
	- Following CL#1558704. Fix a regression with AMDIL path. Allocate default device sampler

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#588 edit
Tento commit je obsažen v:
foreman
2018-05-24 15:56:10 -04:00
rodič bcea58f07f
revize f095889106
+6
Zobrazit soubor
@@ -1623,6 +1623,12 @@ bool Device::createSampler(const amd::Sampler& owner, device::Sampler** sampler)
return false;
}
*sampler = gpuSampler;
} else {
//! Currently allocate the base device class for AMDIL path
*sampler = new device::Sampler();
if (*sampler == nullptr) {
return false;
}
}
return true;
}