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:
committed by
Marge Bot
parent
1f3ffb7fd9
commit
56587b24e5
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user