meta: Fix blit shader compile on non-glsl-130 drivers.
authorEric Anholt <eric@anholt.net>
Fri, 14 Feb 2014 22:31:17 +0000 (14:31 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Feb 2014 17:56:06 +0000 (09:56 -0800)
Compare this VS to the one for the post-130 case.  Fixes piglit
glsl-lod-bias, and presumably tons of other code (I haven't done a full
piglit run on swrast).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74911
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.c

index d3ca3b782aa48b0274ca747f687edcb9306ca56c..dd905ddc54556c33429b2c443e651c5671eacb5b 100644 (file)
@@ -193,7 +193,7 @@ _mesa_meta_setup_blit_shader(struct gl_context *ctx,
        || ctx->Const.GLSLVersion < 130) {
       vs_source =
          "attribute vec2 position;\n"
-         "attribute vec3 textureCoords;\n"
+         "attribute vec4 textureCoords;\n"
          "varying vec4 texCoords;\n"
          "void main()\n"
          "{\n"