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_job.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/vc5/vc5_job.c') diff --git a/src/gallium/drivers/vc5/vc5_job.c b/src/gallium/drivers/vc5/vc5_job.c index 46c85e7edf4..0141802b43e 100644 --- a/src/gallium/drivers/vc5/vc5_job.c +++ b/src/gallium/drivers/vc5/vc5_job.c @@ -118,6 +118,7 @@ vc5_job_add_bo(struct vc5_job *job, struct vc5_bo *bo) vc5_bo_reference(bo); _mesa_set_add(job->bos, bo); + job->referenced_size += bo->size; uint32_t *bo_handles = (void *)(uintptr_t)job->submit.bo_handles; -- cgit v1.2.3