mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 09:30:11 +01:00
st/mesa: stop initialing Instructions and NumInstructions
Since gl_program is now created with rzalloc() they should already be initialised. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
0ad69e6b51
commit
d6bdb3a862
2 changed files with 0 additions and 6 deletions
|
|
@ -417,9 +417,6 @@ st_nir_get_mesa_program(struct gl_context *ctx,
|
|||
_mesa_log("\n\n");
|
||||
}
|
||||
|
||||
prog->Instructions = NULL;
|
||||
prog->NumInstructions = 0;
|
||||
|
||||
prog->SamplersUsed = shader->active_samplers;
|
||||
prog->ShadowSamplers = shader->shadow_samplers;
|
||||
prog->ExternalSamplersUsed = gl_external_samplers(shader);
|
||||
|
|
|
|||
|
|
@ -6501,9 +6501,6 @@ get_mesa_program_tgsi(struct gl_context *ctx,
|
|||
_mesa_log("\n\n");
|
||||
}
|
||||
|
||||
prog->Instructions = NULL;
|
||||
prog->NumInstructions = 0;
|
||||
|
||||
do_set_program_inouts(shader->ir, prog, shader->Stage);
|
||||
_mesa_copy_linked_program_data(shader_program, shader);
|
||||
shrink_array_declarations(v->inputs, v->num_inputs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue