[Mesa-dev] [PATCH 5/5] i965: Enable MESA_shader_integer_mix.

Ian Romanick idr at freedesktop.org
Sun Sep 8 09:36:28 PDT 2013


On 09/06/2013 05:57 PM, Matt Turner wrote:
> Could be supported on Gen5 once it supports GLSL 1.30.
> ---
>  src/mesa/drivers/dri/i965/intel_extensions.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
> index 655467c..6f9955d 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -147,6 +147,8 @@ 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;
> +      /* FINISHME: Support on Gen5 when it supports GLSL 1.30. */
> +      ctx->Extensions.MESA_shader_integer_mix = true;

Maybe put this at the end as

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

Then we don't have to remember to do anything. :)

>        /* Test if the kernel has the ioctl. */
>        if (drm_intel_reg_read(brw->bufmgr, TIMESTAMP, &dummy) == 0)



More information about the mesa-dev mailing list