i965: Precompile ARB programs.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Nov 2014 07:39:34 +0000 (23:39 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Nov 2014 23:30:09 +0000 (15:30 -0800)
commitf0c91f32c0b09f27f67cac34cba070bdc5274a15
treebf44cf2dd4383b21cfe9ca6c8c8151ffc9dd3e88
parentb55777f39d00a0c54023eba012d326ff09fa530b
i965: Precompile ARB programs.

We already precompile GLSL programs; it seems logical to precompile ARB
programs as well.  We just never hooked it up.

This also makes the programs compile even if no drawing occurs, which is
useful for shader-db.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_program.c