summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-04-06 15:15:37 -0700
committerEric Anholt <[email protected]>2015-04-13 10:33:30 -0700
commit8eb9304ee74b7f4a3ef9f8ac9cb04f3031a61ded (patch)
tree06303dbac2cb5ff14a9c260abbaa80e95a3518b5
parent89b140dfaeacb8fb0a784c8dd7da26b0d14189e8 (diff)
vc4: Add missed accounting for the size of the semaphore.
This wouldn't have mattered except in the worst case scenario RCL setup.
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index ed10f7ac7d3..1859dd62d0f 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -118,10 +118,12 @@ vc4_setup_rcl(struct vc4_context *vc4)
uint32_t tilecoords_size = 3;
uint32_t branch_size = 5 + reloc_size;
uint32_t color_store_size = 1;
+ uint32_t semaphore_size = 1;
cl_ensure_space(&vc4->rcl,
clear_size +
config_size +
loadstore_size +
+ semaphore_size +
xtiles * ytiles * (loadstore_size * 4 +
tilecoords_size * 3 +
branch_size +