i965: Don't try to dump shader source for fixed-function FS programs.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 06:15:30 +0000 (22:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 10:31:24 +0000 (02:31 -0800)
commitf896e82301255177894a6c51883e18d32c36b307
tree7d57abf3630838a7656de3afe109dedc9dac0116
parentb18871c863fabec3ed383881d2cdd0298b157b06
i965: Don't try to dump shader source for fixed-function FS programs.

sh->Source is NULL and this will segfault.

Fixes MESA_GLSL=dump with "The Swapper".

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_shader.cpp