From 488ac00670dcea5f243186761629b7508689bf4a Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 15 May 2015 19:38:50 -0400
Subject: [PATCH] P4 to Git Change 1151655 by gandryey@gera-w8 on 2015/05/15
19:27:54
ECR #304775 - Mipmaps support
- Following CL#1151650. Change the comparison condition to 1.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#216 edit
---
rocclr/runtime/device/gpu/gpuresource.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpuresource.cpp b/rocclr/runtime/device/gpu/gpuresource.cpp
index c24dd67ea4..84c8585ff9 100644
--- a/rocclr/runtime/device/gpu/gpuresource.cpp
+++ b/rocclr/runtime/device/gpu/gpuresource.cpp
@@ -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) || (viewOwner_->cal()->mipLevels_ > 0)) {
+ if ((viewLevel != 0) || (viewOwner_->cal()->mipLevels_ > 1)) {
viewFlags |= CAL_RESALLOCSLICEVIEW_LEVEL;
}
if (viewLayer != 0) {