We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0e9f3 commit 6d2d081Copy full SHA for 6d2d081
visa/FlowGraph.h
@@ -1167,7 +1167,10 @@ class gtPinData
1167
// return igc_info_t format buffer. caller casts it to igc_info_t.
1168
void* getGTPinInfoBuffer(unsigned int &bufferSize);
1169
1170
- void setScratchNextFree(unsigned int next) { nextScratchFree = next; }
+ void setScratchNextFree(unsigned int next)
1171
+ {
1172
+ nextScratchFree = ((next + G4_GRF_REG_NBYTES - 1) / G4_GRF_REG_NBYTES) * G4_GRF_REG_NBYTES;
1173
+ }
1174
uint8_t getNumBytesScratchUse()
1175
{
1176
if (gtpin_init)
0 commit comments