zink: copy some cs shader properties to the program struct

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24835>
This commit is contained in:
Mike Blumenkrantz
2023-08-22 16:13:43 -04:00
committed by Marge Bot
parent 1f3ffb7fd9
commit 56587b24e5
2 changed files with 3 additions and 0 deletions

View File

@@ -1364,6 +1364,7 @@ create_compute_program(struct zink_context *ctx, nir_shader *nir)
struct zink_compute_program *comp = create_program(ctx, true);
if (!comp)
return NULL;
comp->scratch_size = nir->scratch_size;
comp->nir = nir;
comp->num_inlinable_uniforms = nir->info.num_inlinable_uniforms;

View File

@@ -1127,6 +1127,8 @@ struct zink_compute_program {
bool use_local_size;
unsigned scratch_size;
unsigned num_inlinable_uniforms;
nir_shader *nir; //only until precompile finishes