i965: Fix INTEL_DEBUG=vs for fixed-function/ARB programs.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Feb 2014 19:13:48 +0000 (11:13 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Feb 2014 20:36:38 +0000 (12:36 -0800)
commit2f97119950515c841bca98a890e5110206bad945
tree3e5c13eb380910185b274e5332577f5ac8e890ab
parent2062f40d81de4743758851b03dad506f9cb6f306
i965: Fix INTEL_DEBUG=vs for fixed-function/ARB programs.

Since commit 9cee3ff562f3e4b51bfd30338fd1ba7716ac5737, INTEL_DEBUG=vs
has caused a NULL pointer dereference for fixed-function/ARB programs.

In the vec4 generators, "prog" is a gl_program, and "shader_prog" is the
gl_shader_program.  This is different than the FS visitor.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp