From: Timothy Arceri Date: Fri, 10 Nov 2017 08:49:29 +0000 (+1100) Subject: st/atifs: remove unrequired initialisation of gl_program fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b99fb1a04dbec34e43525615d99b683271241ffe;p=mesa.git st/atifs: remove unrequired initialisation of gl_program fields As far as I can tell these fields are only used to query arb program info and are not related to ATI_fragment_shader. Reviewed-by: Marek Olšák Reviewed-by: Miklós Máté --- diff --git a/src/mesa/state_tracker/st_atifs_to_tgsi.c b/src/mesa/state_tracker/st_atifs_to_tgsi.c index 25ccf707350..8affbdc8d1d 100644 --- a/src/mesa/state_tracker/st_atifs_to_tgsi.c +++ b/src/mesa/state_tracker/st_atifs_to_tgsi.c @@ -605,10 +605,6 @@ st_init_atifs_prog(struct gl_context *ctx, struct gl_program *prog) } _mesa_add_state_reference(prog->Parameters, fog_params_state); _mesa_add_state_reference(prog->Parameters, fog_color); - - prog->arb.NumInstructions = 0; - prog->arb.NumTemporaries = MAX_NUM_FRAGMENT_REGISTERS_ATI + 3; /* 3 input temps for arith ops */ - prog->arb.NumParameters = MAX_NUM_FRAGMENT_CONSTANTS_ATI + 2; /* 2 state variables for fog */ }