mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radeonsi: take scratch buffer and draw indirect memory usage into account
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
ed2254d157
commit
c56ecb68e7
1 changed files with 6 additions and 0 deletions
|
|
@ -989,6 +989,12 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
|
||||||
if (sctx->b.flags)
|
if (sctx->b.flags)
|
||||||
si_mark_atom_dirty(sctx, sctx->atoms.s.cache_flush);
|
si_mark_atom_dirty(sctx, sctx->atoms.s.cache_flush);
|
||||||
|
|
||||||
|
/* Add buffer sizes for memory checking in need_cs_space. */
|
||||||
|
if (sctx->emit_scratch_reloc && sctx->scratch_buffer)
|
||||||
|
r600_context_add_resource_size(ctx, &sctx->scratch_buffer->b.b);
|
||||||
|
if (info->indirect)
|
||||||
|
r600_context_add_resource_size(ctx, info->indirect);
|
||||||
|
|
||||||
si_need_cs_space(sctx);
|
si_need_cs_space(sctx);
|
||||||
|
|
||||||
/* Emit states. */
|
/* Emit states. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue