diff --git a/rocclr/runtime/device/gpu/gpuresource.cpp b/rocclr/runtime/device/gpu/gpuresource.cpp index 0a197a615d..454dff06ab 100644 --- a/rocclr/runtime/device/gpu/gpuresource.cpp +++ b/rocclr/runtime/device/gpu/gpuresource.cpp @@ -2072,6 +2072,7 @@ ResourceCache::findCalResource(Resource::CalResourceDesc* desc) (entry->channelOrder_ == desc->channelOrder_) && (entry->format_ == desc->format_) && (entry->flags_ == desc->flags_) && + (entry->mipLevels_ == desc->mipLevels_) && (entry->isAllocExecute_ == desc->isAllocExecute_)) { ref = it.second; delete it.first;