OSDN Git Service

i915: Enable ARB_fragment_shader by default.
authorEric Anholt <eric@anholt.net>
Tue, 17 Aug 2010 22:07:22 +0000 (15:07 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 17 Aug 2010 23:39:17 +0000 (16:39 -0700)
Now that we have glsl2 with if flattening in place, most shaders will
just work.  Remaining failing shaders will mostly be due to loop
unrolling (in progress), some possible if flattening failures in
inlining functions (planning on fixing), and the register/instruction
count limits.

While the GLSL and GLSL-ES specs say that shaders shouldn't fail to
compile/link due to register/instruction limits, in practice we're not
the first vendor to expose GLSL on hardware with these limitations.
The benefit to application developers of providing a better language
for GPU programming is greater than the pain of having to handle
instruction limits (which they had to for ARB_fp on this hardware
anyway)

src/mesa/drivers/dri/intel/intel_screen.c

index 15a465c..8c41115 100644 (file)
@@ -70,7 +70,7 @@ PUBLIC const char __driConfigOptions[] =
         DRI_CONF_DESC(en, "Enable early Z in classic mode (unstable, 945-only).")
       DRI_CONF_OPT_END
 
-      DRI_CONF_OPT_BEGIN(fragment_shader, bool, false)
+      DRI_CONF_OPT_BEGIN(fragment_shader, bool, true)
         DRI_CONF_DESC(en, "Enable limited ARB_fragment_shader support on 915/945.")
       DRI_CONF_OPT_END