v3d: Flush blit jobs immediately after generating them.
authorEric Anholt <eric@anholt.net>
Tue, 22 Jan 2019 19:05:56 +0000 (11:05 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 27 Jan 2019 16:30:03 +0000 (08:30 -0800)
commitedb1fcd9637a3a590d7eb436349855d009e62a98
tree5a2a51f4592fc9ac25c66e6fc0ffd04bf824ade8
parentac333ffa59344a4448d6d6cd44aa1ffa4c1285f7
v3d: Flush blit jobs immediately after generating them.

Fixes OOMs in the CTS's packed_pixels.varied_rectangle.* tests -- the
series of texture uploads at the start before texturing occurred would end
up all sitting around as cached jobs for reuse.  By flushing immediately,
peak active BO usage goes from 150M to 40M.

We could maybe put some limits on how many jobs we keep around, but blits
seem particularly unlikely to get reused for other drawing.
src/gallium/drivers/v3d/v3d_blit.c