StagingBuffer: Large slots should be aligned to alignment

Slots whose stride size is larger than the slot alignment value
should have their size rounded up to the alignment size so that
the slots that follow them will also be aligned.
This commit is contained in:
2025-11-20 00:03:50 -04:00
parent 5789a31e23
commit 0cfb0a9c07
3 changed files with 167 additions and 361 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ public:
+ ": StimulusFrame: failed to create clBuffer");
}
std::cout << __func__ << ": StimulusFrame: created clBuffer with size " << slotDesc.nBytes << " bytes @ " << (const void*)slotDesc.vaddr << std::endl;
// std::cout << __func__ << ": StimulusFrame: created clBuffer with size " << slotDesc.nBytes << " bytes @ " << (const void*)slotDesc.vaddr << std::endl;
}
~StimulusFrame() = default;