summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-07 11:05:16 -0800
committerEric Anholt <[email protected]>2017-11-07 12:58:03 -0800
commit3bfcd31e9816813dad0ef7ec82b0fb62dd0271a0 (patch)
treef2233511f9f31a312e4079abb143922ef349b2e5 /src/gallium/drivers/vc5/vc5_context.h
parent50906e4583357920b49c78c25787403c5b4836d0 (diff)
braodcom/vc5: Flush the job when it grows over 1GB.
Fixes GL_OUT_OF_MEMORY from streaming-texture-leak (and will hopefully keep piglit from ooming on my no-swap platform, as well).
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.h')
-rw-r--r--src/gallium/drivers/vc5/vc5_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.h b/src/gallium/drivers/vc5/vc5_context.h
index 4917153fd46..73fb0d0bc53 100644
--- a/src/gallium/drivers/vc5/vc5_context.h
+++ b/src/gallium/drivers/vc5/vc5_context.h
@@ -205,6 +205,9 @@ struct vc5_job {
*/
struct set *bos;
+ /** Sum of the sizes of the BOs referenced by the job. */
+ uint32_t referenced_size;
+
struct set *write_prscs;
/* Size of the submit.bo_handles array. */