Mesa (master): glsl: Silence warnings when reading from a framebuffer fetch output.

Francisco Jerez currojerez at kemper.freedesktop.org
Sun Feb 25 00:34:15 UTC 2018


Module: Mesa
Branch: master
Commit: c6c64d4d6a134231cbdbe09e3c6c87adb811ac7d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6c64d4d6a134231cbdbe09e3c6c87adb811ac7d

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Mon Feb 12 15:55:13 2018 -0800

glsl: Silence warnings when reading from a framebuffer fetch output.

Framebuffer fetch outputs are implicitly initialized upon entry to the
fragment shader.

Reviewed-by: Plamena Manolova <plamena.manolova at intel.com>

---

 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 5acbaa321a..badfbe6816 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:




More information about the mesa-commit mailing list