[Mesa-dev] [PATCH 6/6] i965: enable ARB_texture_query_levels on Gen6+

Matt Turner mattst88 at gmail.com
Fri Oct 4 21:47:12 PDT 2013


On Fri, Oct 4, 2013 at 9:17 PM, Chris Forbes <chrisf at ijw.co.nz> wrote:
> Theoretically would work on Gen5 as well but requires GLSL 1.30, which
> is not (yet) enabled by default there.

In that case, just do

ctx->Extensions.ARB_texture_query_levels = ctx->Const.GLSLVersion >= 130;

and put it in the if (brw->gen >= 5) block.

> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
>  src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
> index 0502a48..1d6a1ac 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -148,6 +148,7 @@ intelInitExtensions(struct gl_context *ctx)
>        ctx->Extensions.OES_depth_texture_cube_map = true;
>        ctx->Extensions.ARB_shading_language_packing = true;
>        ctx->Extensions.ARB_texture_multisample = true;
> +      ctx->Extensions.ARB_texture_query_levels = true;
>
>        /* Test if the kernel has the ioctl. */
>        if (drm_intel_reg_read(brw->bufmgr, TIMESTAMP, &dummy) == 0)
> --
> 1.8.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list