i965: Enable ARB_texture_gather on Gen7
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 24 Mar 2013 07:18:55 +0000 (20:18 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 2 Oct 2013 18:56:37 +0000 (07:56 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_extensions.c

index 18b8e573b598518d0abf383363cab952b6911171..776d22139349b67a78966f092c5dd6b10935c613 100644 (file)
@@ -176,6 +176,7 @@ brw_initialize_context_constants(struct brw_context *brw)
       ctx->Const.MaxColorTextureSamples = 8;
       ctx->Const.MaxDepthTextureSamples = 8;
       ctx->Const.MaxIntegerSamples = 8;
+      ctx->Const.MaxProgramTextureGatherComponents = 4;
    }
 
    ctx->Const.MinLineWidth = 1.0;
index 0fc5aad23c080e921d3d3d6769708d07c49fee0c..0502a48552a7b207c3d116d627b266bc466d4bad 100644 (file)
@@ -163,6 +163,10 @@ intelInitExtensions(struct gl_context *ctx)
    if (brw->gen == 5)
       ctx->Extensions.AMD_performance_monitor = true;
 
+   if (brw->gen >= 7) {
+      ctx->Extensions.ARB_texture_gather = true;
+   }
+
    if (ctx->API == API_OPENGL_CORE)
       ctx->Extensions.ARB_base_instance = true;
    if (ctx->API != API_OPENGL_CORE)