nir: Extract shader_info->cs.shared_size out of union.

It is valid for all stages, just 0 for most of them. In particular
mesh/task shaders might be using it.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10094>
This commit is contained in:
Bas Nieuwenhuizen
2021-04-08 12:30:14 +02:00
committed by Marge Bot
parent afd2f489d3
commit 580f1ac473
25 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -9445,7 +9445,7 @@ brw_compile_cs(const struct brw_compiler *compiler,
const bool debug_enabled = INTEL_DEBUG & DEBUG_CS;
prog_data->base.stage = MESA_SHADER_COMPUTE;
prog_data->base.total_shared = nir->info.cs.shared_size;
prog_data->base.total_shared = nir->info.shared_size;
/* Generate code for all the possible SIMD variants. */
bool generate_all;