SWDEV-406687 - combining rocblitcl and palblitcl blit kernel defs

Change-Id: Ia312d73584a03491e8d574f424295b64df6de174
This commit is contained in:
ajay
2023-06-19 18:02:48 +00:00
committed by Ajay GunaShekar
parent e9750de215
commit d6946ffcbc
5 changed files with 28 additions and 87 deletions
+1 -8
View File
@@ -835,8 +835,6 @@ Device::~Device() {
extern const char* SchedulerSourceCode;
extern const char* SchedulerSourceCode20;
extern const char* GwsInitSourceCode;
extern const char* palBlitLinearSourceCode;
Pal::IDevice* gDeviceList[Pal::MaxDevices] = {};
uint32_t gStartDevice = 0;
@@ -2506,12 +2504,7 @@ bool Device::createBlitProgram() {
// Delayed compilation due to brig_loader memory allocation
std::string extraBlits;
std::string ocl20;
if (amd::IS_HIP) {
extraBlits = palBlitLinearSourceCode;
if (info().cooperativeGroups_) {
extraBlits.append(GwsInitSourceCode);
}
} else {
if (!amd::IS_HIP) {
if (settings().oclVersion_ >= OpenCL20) {
extraBlits = iDev()->GetDispatchKernelSource();
if (settings().useLightning_) {