SWDEV-487903 - Fix for Empty Kernel Segfault in PAL
Change-Id: Ia1c19cf4ea24188cdb2d374b07f975f794e02dba
Dieser Commit ist enthalten in:
committet von
Rahul Manocha
Ursprung
614b00c20b
Commit
9da90fe848
@@ -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();
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren