st/atifs: remove unrequired initialisation of gl_program fields
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 10 Nov 2017 08:49:29 +0000 (19:49 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 12 Nov 2017 00:59:22 +0000 (11:59 +1100)
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 <marek.olsak@amd.com>
Reviewed-by: Miklós Máté <mtmkls@gmail.com>
src/mesa/state_tracker/st_atifs_to_tgsi.c

index 25ccf70..8affbdc 100644 (file)
@@ -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 */
 }