i965: use EmitNoIndirectSampler for gen < 7
authorTapani Pälli <tapani.palli@intel.com>
Wed, 24 Jun 2015 10:22:43 +0000 (13:22 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 30 Jun 2015 08:12:44 +0000 (11:12 +0300)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: "10.5" and "10.6" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_shader.cpp

index 32c401314341b8cc468389748797a6aa124f30cd..3e3d78b9ad713e46fc60b341dcceb0097dd9fd16 100644 (file)
@@ -113,6 +113,10 @@ brw_compiler_create(void *mem_ctx, const struct brw_device_info *devinfo)
         (i == MESA_SHADER_FRAGMENT);
       compiler->glsl_compiler_options[i].EmitNoIndirectUniform = false;
       compiler->glsl_compiler_options[i].LowerClipDistance = true;
+
+      /* !ARB_gpu_shader5 */
+      if (devinfo->gen < 7)
+         compiler->glsl_compiler_options[i].EmitNoIndirectSampler = true;
    }
 
    compiler->glsl_compiler_options[MESA_SHADER_VERTEX].OptimizeForAOS = true;