i965: enable ARB_texture_query_levels on Gen6+
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 04:11:57 +0000 (17:11 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 06:16:33 +0000 (19:16 +1300)
Theoretically would work on Gen5 as well but requires GLSL 1.30, which
is not (yet) enabled by default there.

V2: Enable for Gen5 conditionally on GLSL version.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_extensions.c

index 0502a48552a7b207c3d116d627b266bc466d4bad..52076f70a35205fb2d7563a1d5dd0af45a9b2c6b 100644 (file)
@@ -158,6 +158,7 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_texture_query_lod = true;
       ctx->Extensions.EXT_timer_query = true;
       ctx->Extensions.EXT_shader_integer_mix = ctx->Const.GLSLVersion >= 130;
+      ctx->Extensions.ARB_texture_query_levels = ctx->Const.GLSLVersion >= 130;
    }
 
    if (brw->gen == 5)