P4 to Git Change 1131417 by gandryey@gera-w8 on 2015/03/17 10:31:57

ECR #304775 - Mipmaps support
	- Create views for the specified mip level in the transfer operations
	- OCL requires just one mip level transfer. Thus we could keep the original blit kernels and just create a view for the specified mip level.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#500 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#119 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#90 edit
This commit is contained in:
foreman
2015-03-17 10:53:04 -04:00
förälder 65421eb202
incheckning f20ddcf1ce
3 ändrade filer med 44 tillägg och 17 borttagningar
+1 -1
Visa fil
@@ -2011,7 +2011,7 @@ Device::createView(amd::Memory& owner, const device::Memory& parent) const
const gpu::Memory& gpuMem = static_cast<const gpu::Memory&>(parent);
params.owner_ = &owner;
params.level_ = 0;
params.level_ = image.getBaseMipLevel();
params.layer_ = 0;
params.resource_ = &gpuMem;
params.gpu_ = reinterpret_cast<VirtualGPU*>(owner.getVirtualDevice());