P4 to Git Change 1163090 by gandryey@gera-w8 on 2015/06/18 17:29:32

ECR #304775 - Mipmaps support
	- Fix the view creation for the host path transfers. GSL can ignore the original mipmap surface dimensions and apply the new settings

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#220 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#123 edit
Bu işleme şunda yer alıyor:
foreman
2015-06-18 17:39:39 -04:00
ebeveyn bbd0867848
işleme 706ff60007
2 değiştirilmiş dosya ile 20 ekleme ve 2 silme
+3
Dosyayı Görüntüle
@@ -932,6 +932,9 @@ CALGSLDevice::resAllocView(gslMemObject res, gslResource3D size, CALdomain offse
levelobject = m_cs->createSubMemObject(res, GSL_LEVEL, levelParam);
attribs.bytePitch = static_cast<size_t>(levelobject->getPitch()) *
(levelobject->getBitsPerElement() / 8);
// GSL doesn't detect that the base surface is mipmaped
// and doesn't apply the height alignment
size.height = levelobject->getHeight();
}
if (flags & CAL_RESALLOCSLICEVIEW_LAYER)
{