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.
2 parents 19c09ec + 486e6eb commit dc136c5Copy full SHA for dc136c5
1 file changed
ee/graph/src/graph_vram.c
@@ -14,6 +14,9 @@ int graph_vram_allocate(int width, int height, int psm, int alignment)
14
15
graph_vram_pointer += size;
16
17
+ // Align the pointer
18
+ graph_vram_pointer = -alignment & (graph_vram_pointer + (alignment-1));
19
+
20
// If the pointer overflows the vram size
21
if (graph_vram_pointer > GRAPH_VRAM_MAX_WORDS)
22
{
0 commit comments