diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-03-29 17:51:49 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-19 18:10:30 +0200 |
commit | 84a6761ae34105fbdb38757a07e229b2392545d3 (patch) | |
tree | 3ba48603a3c686a77b73bb5148983ef67d984421 /src/gallium/drivers/radeonsi/si_shader.h | |
parent | 753a3e472b4c026d96f9984b02b53f596a0d595e (diff) |
radeonsi: add shared memory
Declares the shared memory as a global variable so that
LLVM is aware of it and it does not conflict with passes
like AMDGPUPromoteAlloca.
v2: - Use ctx->i8.
- Dropped null-check for declare_memory_region.
- Changed memory region array to single region.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index 738ddf65b57..6ea849d2eae 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -250,6 +250,9 @@ struct si_shader_selector { */ unsigned colors_written_4bit; + /* CS parameters */ + unsigned local_size; + /* masks of "get_unique_index" bits */ uint64_t outputs_written; uint32_t patch_outputs_written; |