SWDEV-432174 - Change the fillBuffer kernel

- Add the new fillBuffer kernel, which allows to launch a limited
number of workgroups for memory fill operation
- Switch fill memory to 16 bytes write by default
- Allow to limit the workgroups with DEBUG_CLR_LIMIT_BLIT_WG

Change-Id: Ibad1822f2d42b2fc71bcfc1917c31409c0623e8e
This commit is contained in:
German Andryeyev
2023-11-14 12:49:17 -05:00
parent 57cb840058
commit f1dc81f427
13 changed files with 283 additions and 214 deletions
+4 -1
View File
@@ -769,7 +769,10 @@ bool Device::create() {
pciDeviceId_);
return false;
}
hsaSettings->limit_blit_wg_ = info().maxComputeUnits_;
if (!flagIsDefault(DEBUG_CLR_LIMIT_BLIT_WG)) {
hsaSettings->limit_blit_wg_ = std::max(DEBUG_CLR_LIMIT_BLIT_WG, 0x1U);
}
amd::Context::Info info = {0};
std::vector<amd::Device*> devices;
devices.push_back(this);