i915g: use passthough shader for empty fragment programs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Mar 2011 22:44:39 +0000 (23:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Mar 2011 22:46:20 +0000 (23:46 +0100)
commit98b418e56e9592cb796f2f814b3c8b46238d05af
tree5d329022582e58988ef3229ee3967fc02e761047
parent22d9ae11bc436375a67752b90d8a5a273754d907
i915g: use passthough shader for empty fragment programs

The hw doesn't like it - demos/shadowtex is broken. The emitted shader
isn't totally empty though, the depth write fixup gets emitted instead.
Maybe that one is somewhat fishy, too?

Idea for this patch from Jakob Bornecrantz.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_fpc_translate.c