mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
More cleanup of Level Zero core API
Change-Id: Iad2118683efb4f5029503a8fec20d88b37d22e07 Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
@@ -32,7 +32,11 @@ Sampler *Sampler::create(uint32_t productFamily, Device *device, const ze_sample
|
||||
SamplerImp *sampler = nullptr;
|
||||
if (allocator) {
|
||||
sampler = static_cast<SamplerImp *>((*allocator)());
|
||||
sampler->initialize(device, desc);
|
||||
if (sampler->initialize(device, desc)) {
|
||||
delete sampler;
|
||||
DEBUG_BREAK_IF(true);
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
return sampler;
|
||||
|
||||
Reference in New Issue
Block a user