i915: don't validate PS program when falling back to software
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 Jan 2008 09:11:39 +0000 (17:11 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 Jan 2008 09:11:39 +0000 (17:11 +0800)
rendering. fix #12786

src/mesa/drivers/dri/i915/i915_vtbl.c

index 58f681f74b76c8708e022c45042bc2dcbed742f5..1de518ace1c4ec7475807a5728ab845236ebfcc6 100644 (file)
@@ -48,7 +48,8 @@ i915_render_prevalidate(struct intel_context *intel)
 {
    struct i915_context *i915 = i915_context(&intel->ctx);
 
-   i915ValidateFragmentProgram(i915);
+   if (!intel->Fallback)
+       i915ValidateFragmentProgram(i915);
 }
 
 static void