Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24839>
comp->use_local_size = !(nir->info.workgroup_size[0] ||
nir->info.workgroup_size[1] ||
nir->info.workgroup_size[2]);
+ comp->has_variable_shared_mem = nir->info.cs.has_variable_shared_mem;
comp->base.can_precompile = !comp->use_local_size &&
(screen->info.have_EXT_non_seamless_cube_map || !zink_shader_has_cubes(nir)) &&
(screen->info.rb2_feats.robustImageAccess2 || !(ctx->flags & PIPE_CONTEXT_ROBUST_BUFFER_ACCESS));
struct zink_program base;
bool use_local_size;
+ bool has_variable_shared_mem;
unsigned scratch_size;