Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ee/graph/src/graph_vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ int graph_vram_allocate(int width, int height, int psm, int alignment)

graph_vram_pointer += size;

// Align the pointer
graph_vram_pointer = -alignment & (graph_vram_pointer + (alignment-1));

// If the pointer overflows the vram size
if (graph_vram_pointer > GRAPH_VRAM_MAX_WORDS)
{
Expand Down