[Mesa-dev] [PATCH 14/15] glsl: Silence warnings when reading from a framebuffer fetch output.

Francisco Jerez currojerez at riseup.net
Wed Feb 14 21:18:36 UTC 2018


Framebuffer fetch outputs are implicitly initialized upon entry to the
fragment shader.
---
 src/compiler/glsl/ast_to_hir.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 5acbaa321a9..badfbe6816f 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -4017,6 +4017,7 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
    }
 
    if (var->data.fb_fetch_output) {
+      var->data.assigned = true;
       var->data.memory_coherent = !qual->flags.q.non_coherent;
 
       /* From the EXT_shader_framebuffer_fetch spec:
-- 
2.16.1



More information about the mesa-dev mailing list