[Mesa-dev] [PATCH 14/16] i965: Enable GL_KHR_blend_equation_advanced on G45 and later.

Francisco Jerez currojerez at riseup.net
Tue Aug 16 21:51:38 UTC 2016


Kenneth Graunke <kenneth at whitecape.org> writes:

> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  src/mesa/drivers/dri/i965/brw_link.cpp       | 2 ++
>  src/mesa/drivers/dri/i965/intel_extensions.c | 4 +++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
> index 1ad2369..4800be0 100644
> --- a/src/mesa/drivers/dri/i965/brw_link.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_link.cpp
> @@ -101,6 +101,8 @@ process_glsl_ir(gl_shader_stage stage,
>  
>     ralloc_adopt(mem_ctx, shader->ir);
>  
> +   lower_blend_equation_advanced(shader);
> +
>     /* lower_packing_builtins() inserts arithmetic instructions, so it
>      * must precede lower_instructions().
>      */
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
> index 33114db..daf5567 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -280,8 +280,10 @@ intelInitExtensions(struct gl_context *ctx)
>     ctx->Extensions.EXT_shader_integer_mix = ctx->Const.GLSLVersion >= 130;
>     ctx->Extensions.MESA_shader_integer_functions = ctx->Const.GLSLVersion >= 130;
>  
> -   if (brw->is_g4x || brw->gen >= 5)
> +   if (brw->is_g4x || brw->gen >= 5) {
>        ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent = true;
> +      ctx->Extensions.KHR_blend_equation_advanced = true;
> +   }
>  
>     if (brw->gen >= 5) {
>        ctx->Extensions.ARB_texture_query_levels = ctx->Const.GLSLVersion >= 130;
> -- 
> 2.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160816/af5e9ff4/attachment-0001.sig>


More information about the mesa-dev mailing list