From 84a6761ae34105fbdb38757a07e229b2392545d3 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 29 Mar 2016 17:51:49 +0200 Subject: radeonsi: add shared memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Reviewed-by: Nicolai Hähnle Reviewed-by: Edward O'Callaghan --- src/gallium/drivers/radeonsi/si_shader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_shader.h') 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; -- cgit v1.2.3