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:
@@ -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));
|
||||
|
||||
@@ -1131,6 +1131,7 @@ struct zink_compute_program {
|
||||
struct zink_program base;
|
||||
|
||||
bool use_local_size;
|
||||
bool has_variable_shared_mem;
|
||||
|
||||
unsigned scratch_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user