P4 to Git Change 1989264 by gandryey@gera-win10 on 2019/08/26 18:05:35

SWDEV-79445 - OCL generic changes and code clean-up
	- Fix a typo, use privateMemSize instead of numMaxWaves

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#159 edit
Esse commit está contido em:
foreman
2019-08-26 18:12:24 -04:00
commit 5cbc8ebc58
+1 -1
Ver Arquivo
@@ -2010,7 +2010,7 @@ bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
// Current private mem size
uint32_t privateMemSize = regNum * sizeof(uint32_t);
// Max between the allocation and current
privateMemSize = std::max(privateMemSize, scratch_[sb]->numMaxWaves_);
privateMemSize = std::max(privateMemSize, scratch_[sb]->privateMemSize_);
uint64_t newSize =
static_cast<uint64_t>(info().wavefrontWidth_) * privateMemSize * numMaxWaves * numTotalCUs;