From 3bfcd31e9816813dad0ef7ec82b0fb62dd0271a0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 7 Nov 2017 11:05:16 -0800 Subject: 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). --- src/gallium/drivers/vc5/vc5_context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/vc5/vc5_context.h') 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. */ -- cgit v1.2.3