diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-04-02 13:04:18 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-19 18:10:31 +0200 |
commit | ba1f66a73d493c49a3a329d9f3882ddbae4147b0 (patch) | |
tree | a99285ca2bda0fb5c026787cf337b5afaeb5663d /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | 107f4d3538e6eeab396bf41a4d4334950adf81ac (diff) |
radeonsi: rework compute scratch buffer
Instead of having a scratch buffer per program, have one per
context.
Also removed the per kernel wave count calculations, but
that only helped if the total number of waves in the dispatch
was smaller than sctx->scratch_waves.
v2: Fix style issue.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 91ccbea6ba3..d752c0c7fbd 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -306,6 +306,8 @@ struct si_context { unsigned scratch_waves; unsigned spi_tmpring_size; + struct r600_resource *compute_scratch_buffer; + /* Emitted derived tessellation state. */ struct si_shader *last_ls; /* local shader (VS) */ struct si_shader_selector *last_tcs; |