SWDEV-406687 - combining rocblitcl and palblitcl blit kernel defs

Change-Id: Ia312d73584a03491e8d574f424295b64df6de174


[ROCm/clr commit: d6946ffcbc]
This commit is contained in:
ajay
2023-06-19 18:02:48 +00:00
committed by Ajay GunaShekar
parent eed1597e39
commit a8d5879f26
5 changed files with 28 additions and 87 deletions
@@ -546,8 +546,6 @@ bool Device::init() {
}
extern const char* SchedulerSourceCode;
extern const char* GwsInitSourceCode;
extern const char* rocBlitLinearSourceCode;
void Device::tearDown() {
NullDevice::tearDown();
@@ -845,13 +843,7 @@ bool Device::createBlitProgram() {
#if defined(USE_COMGR_LIBRARY)
if (settings().useLightning_) {
if (amd::IS_HIP) {
extraKernel = rocBlitLinearSourceCode;
if (info().cooperativeGroups_) {
extraKernel.append(GwsInitSourceCode);
}
}
else {
if (!amd::IS_HIP) {
extraKernel = SchedulerSourceCode;
}