SWDEV-305527 - Changes to handle memset blit kernel that takes width, height and depth. This also fixes SWDEV-317261.

Change-Id: Ic85f63a95d9d8f48884fc8c7fd95cbb496dfbbca
Tento commit je obsažen v:
kjayapra-amd
2021-10-19 13:00:51 -04:00
odevzdal Karthik Jayaprakash
rodič 7a0e83c061
revize 7fb80a027a
11 změnil soubory, kde provedl 224 přidání a 47 odebrání
+2 -2
Zobrazit soubor
@@ -117,8 +117,8 @@ bool Segment::alloc(HSAILProgram& prog, amdgpu_hsa_elf_segment_t segment, size_t
if ((cpuAccess_ == nullptr) && zero && !prog.isInternal()) {
uint64_t pattern = 0;
size_t patternSize = ((size % sizeof(pattern)) == 0) ? sizeof(pattern) : 1;
prog.palDevice().xferMgr().fillBuffer(*gpuAccess_, &pattern, patternSize, amd::Coord3D(0),
amd::Coord3D(size));
prog.palDevice().xferMgr().fillBuffer(*gpuAccess_, &pattern, patternSize, amd::Coord3D(size),
amd::Coord3D(0), amd::Coord3D(size));
}
switch (segment) {