SWDEV-306697 - Fix OCLGlobalOffset segfaults

If we don't create the __amd_rocclr_gwsInit kernel, we still want
to create the rest of the image related blit kernels.

Change-Id: I8bc4645f9f9116eeecbb8b22e981ac4d520f3121
This commit is contained in:
Jason Tang authored and Jason Tang committed 2021-10-12 15:13:28 -04:00
1 vanhempi 641b1d3968
commit 55a0cf0b0c
2 files changed
+4 -3

No files matched your search

+2 -2
Näytä tiedosto
@@ -722,7 +722,8 @@ bool KernelBlitManager::createProgram(Device& device) {
for (uint i = 0; i < BlitTotal; ++i) {
const amd::Symbol* symbol = program_->findSymbol(BlitName[i]);
if (symbol == NULL) {
break;
// Not all blit kernels are needed in some setup, so continue with the rest
continue;
}
kernels_[i] = new amd::Kernel(*program_, *symbol, BlitName[i]);
if (kernels_[i] == NULL) {
@@ -737,7 +738,6 @@ bool KernelBlitManager::createProgram(Device& device) {
result = true;
} while (!result);
if (dev().settings().xferBufSize_ > 0) {
xferBufferSize_ = dev().settings().xferBufSize_;
for (uint i = 0; i < MaxXferBuffers; ++i) {
+2 -1
Näytä tiedosto
@@ -838,7 +838,8 @@ bool KernelBlitManager::createProgram(Device& device) {
for (uint i = 0; i < NumBlitKernels(); ++i) {
const amd::Symbol* symbol = program_->findSymbol(BlitName[i]);
if (symbol == nullptr) {
break;
// Not all blit kernels are needed in some setup, so continue with the rest
continue;
}
kernels_[i] = new amd::Kernel(*program_, *symbol, BlitName[i]);
if (kernels_[i] == nullptr) {