Module: Mesa
Branch: master
Commit: b99fb1a04dbec34e43525615d99b683271241ffe
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b99fb1a04dbec34e43525615d99b683271241ffe

Author: Timothy Arceri <[email protected]>
Date:   Fri Nov 10 19:49:29 2017 +1100

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 <[email protected]>
Reviewed-by: Miklós Máté <[email protected]>

---

 src/mesa/state_tracker/st_atifs_to_tgsi.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/mesa/state_tracker/st_atifs_to_tgsi.c 
b/src/mesa/state_tracker/st_atifs_to_tgsi.c
index 25ccf70735..8affbdc8d1 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 */
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to