zink: copy has_variable_shared_mem cs property

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>
This commit is contained in:
Karol Herbst
2023-09-19 14:44:26 +02:00
committed by Marge Bot
parent ef018b2373
commit a3214e8976
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1370,6 +1370,7 @@ create_compute_program(struct zink_context *ctx, nir_shader *nir)
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));
+1
View File
@@ -1131,6 +1131,7 @@ struct zink_compute_program {
struct zink_program base;
bool use_local_size;
bool has_variable_shared_mem;
unsigned scratch_size;