nir/linker: fix msvc build
[mesa.git] / src / compiler / glsl / lower_blend_equation_advanced.cpp
index 4f9cd8387ffb92a11e9fd2e812fbec3e352280cb..c85b39bcaa343691b4c83737a77f9fb562988e02 100644 (file)
@@ -28,6 +28,8 @@
 #include "program/prog_instruction.h"
 #include "program/prog_statevars.h"
 #include "util/bitscan.h"
+#include "builtin_functions.h"
+#include "main/mtypes.h"
 
 using namespace ir_builder;
 
@@ -461,7 +463,7 @@ get_main(gl_linked_shader *sh)
 }
 
 bool
-lower_blend_equation_advanced(struct gl_linked_shader *sh)
+lower_blend_equation_advanced(struct gl_linked_shader *sh, bool coherent)
 {
    if (sh->Program->sh.fs.BlendSupport == 0)
       return false;
@@ -479,6 +481,7 @@ lower_blend_equation_advanced(struct gl_linked_shader *sh)
    fb->data.location = FRAG_RESULT_DATA0;
    fb->data.read_only = 1;
    fb->data.fb_fetch_output = 1;
+   fb->data.memory_coherent = coherent;
    fb->data.how_declared = ir_var_hidden;
 
    ir_variable *mode = new(mem_ctx) ir_variable(glsl_type::uint_type,