P4 to Git Change 1228137 by wchau@wchau_WIN_OCL_HSA on 2016/01/15 14:53:24
SWDEV-79308 - Back out changelist 1228064 Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#234 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#155 edit
This commit is contained in:
@@ -1937,8 +1937,8 @@ ResourceCache::findCalResource(Resource::CalResourceDesc* desc)
|
||||
GslResourceReference* ref = NULL;
|
||||
size_t size = getResourceSize(desc);
|
||||
|
||||
// Early exit if resource is too big or it is for scratch buffer
|
||||
if (size >= cacheSizeLimit_ || desc->skipRsrcCache_ || desc->scratch_ ) {
|
||||
// Early exit if resource is too big
|
||||
if (size >= cacheSizeLimit_ || desc->skipRsrcCache_) {
|
||||
//! \note we may need to free the cache here to reduce memory pressure
|
||||
return ref;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user