i965: Enable GL_KHR_blend_equation_advanced on G45 and later.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Jun 2016 06:02:24 +0000 (23:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Aug 2016 02:22:10 +0000 (19:22 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/intel_extensions.c

index 1ad236969529e6f01359747f1a0cc12e2d66d3ec..4800be07e8021dfbca61009c2e47f7b13afdf218 100644 (file)
@@ -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().
     */
index 5092da58f532e95b963726dec74a21513735132b..48e8299c806de88aa28f7ea57bfe2131892c7097 100644 (file)
@@ -281,8 +281,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;