SWDEV-297448 - Refactor streamOperations code

Reuse FillMemory function, that should fix the cache syncs from the host

Change-Id: Ieebec5fc3ed3a322b88d5187c8dca4805ec6f84b
Этот коммит содержится в:
Saleel Kudchadker
2021-08-24 11:25:28 -07:00
родитель 4ab11c0366
Коммит 24442be35a
6 изменённых файлов: 15 добавлений и 28 удалений
+2 -2
Просмотреть файл
@@ -1243,7 +1243,7 @@ void VirtualGPU::submitUnmapMemory(amd::UnmapMemoryCommand& vcmd) {
bool VirtualGPU::fillMemory(cl_command_type type, amd::Memory* amdMemory, const void* pattern,
size_t patternSize, const amd::Coord3D& origin,
const amd::Coord3D& size) {
const amd::Coord3D& size, bool forceBlit) {
gpu::Memory* memory = dev().getGpuMemory(amdMemory);
bool entire = amdMemory->isEntirelyCovered(origin, size);
@@ -1284,7 +1284,7 @@ bool VirtualGPU::fillMemory(cl_command_type type, amd::Memory* amdMemory, const
patternSize = elemSize;
}
result = blitMgr().fillBuffer(*memory, pattern, patternSize, realOrigin, realSize,
amdMemory->isEntirelyCovered(origin, size));
amdMemory->isEntirelyCovered(origin, size), forceBlit);
if (NULL != bufferFromImage) {
bufferFromImage->release();
}