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:
foreman
2016-01-15 15:04:14 -05:00
orang tua 685d1164ee
melakukan 01dda0e716
2 mengubah file dengan 2 tambahan dan 10 penghapusan
+2 -2
Melihat File
@@ -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;
}
@@ -1231,14 +1231,6 @@ CALGSLDevice::calcScratchBufferSize(uint32 regNum) const
m_cs->CalcAllScratchBufferSizes(enabledShadersFlag, scratchSpacePerShaderStage,
scratchBufferSizes);
// SWDEV-79308:
// Reduce the total scratch buffer size by a factor of 4, which in effect reducing the
// max. scratch waves from 32 to 8. This will avoid the required total scratch buffer
// size exceeds the available local memory. (Note: the scratch buffer size needs to
// be 64K alignment)
scratchBufferSizes[target] = (scratchBufferSizes[target] >> 2) & 0xFFFF0000;
return scratchBufferSizes[target];
}