diff options
author | Marek Olšák <[email protected]> | 2019-02-27 21:13:15 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-04-23 11:36:36 -0400 |
commit | 951d60f8cdc886adff09201ff65002e3ee1a4c61 (patch) | |
tree | 9f04720191744b04304fccda0db5d8fddc094a2b /src/gallium/drivers/radeonsi/si_compute.c | |
parent | 09bb8c85577e761062ff8c85847bf49bad4ea86f (diff) |
radeonsi: delay adding BOs at the beginning of IBs until the first draw
so that bound compute shader resources won't be added when they are not
needed and same for graphics.
Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index f1afef2e66f..2f444a3a1b8 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -885,6 +885,9 @@ static void si_launch_grid( si_decompress_textures(sctx, 1 << PIPE_SHADER_COMPUTE); } + if (sctx->bo_list_add_all_compute_resources) + si_compute_resources_add_all_to_bo_list(sctx); + /* Add buffer sizes for memory checking in need_cs_space. */ si_context_add_resource_size(sctx, &program->shader.bo->b.b); /* TODO: add the scratch buffer */ |