i965: Pass gl_program pointers into precompile functions.
We'd like to do precompiling for ARB vertex and fragment programs, which only have gl_program structures - gl_shader_program is NULL. This patch makes the various precompile functions take a gl_program parameter directly, rather than accessing it via gl_shader_program. Signed-off-by: Kenneth Graunke <firstname.lastname@example.org> Reviewed-by: Kristian Høgsberg <email@example.com> Reviewed-by: Matt Turner <firstname.lastname@example.org>
Showing with 33 additions and 29 deletions