P4 to Git Change 1151650 by gandryey@gera-w8 on 2015/05/15 18:45:24

ECR #304775 - Mipmaps support
	- Enable miplevel flag even for the first mip level when runtime creates a view. Otherwise GSL may change the pitch alignment for the created view.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#215 edit
This commit is contained in:
foreman
2015-05-15 18:50:37 -04:00
والد 5303c618b2
کامیت b8c761b199
@@ -664,7 +664,7 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
viewLevel = imageView->level_;
gslResource = imageView->resource_->gslResource();
viewOwner_ = imageView->resource_;
if (viewLevel != 0) {
if ((viewLevel != 0) || (viewOwner_->cal()->mipLevels_ > 0)) {
viewFlags |= CAL_RESALLOCSLICEVIEW_LEVEL;
}
if (viewLayer != 0) {