program: convert _mesa_init_gl_program() to take struct gl_program *
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 13 Oct 2015 10:26:09 +0000 (11:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 15 Oct 2015 12:30:52 +0000 (13:30 +0100)
commitbcb56c2c69dd1695d7828d831d71c957e7e497c6
treec2ac6d67a12ebdb58197894c1213f75c55408564
parent2034bdd46ce757a18fdb3498f6a0232db16522f3
program: convert _mesa_init_gl_program() to take struct gl_program *

Rather than accepting a void pointer, only to down and up cast around
it, convert the function to take the base (struct gl_program) pointer.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp
src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp
src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/program/program.c
src/mesa/program/program.h
src/mesa/state_tracker/st_cb_program.c