SWDEV-487903 - Fix for Empty Kernel Segfault in PAL
Change-Id: Ia1c19cf4ea24188cdb2d374b07f975f794e02dba
[ROCm/clr commit: 9da90fe848]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Rahul Manocha
ebeveyn
bc3f3b09df
işleme
9f10e89d97
@@ -2196,7 +2196,7 @@ void Device::ScratchBuffer::destroyMemory() {
|
||||
}
|
||||
|
||||
bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
|
||||
if (regNum > 0) {
|
||||
if (regNum > 0 && vgprs > 0) {
|
||||
// Serialize the scratch buffer allocation code
|
||||
amd::ScopedLock lk(scratchAlloc_);
|
||||
uint sb = vgpu->hwRing();
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle