summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2018-02-12 15:55:13 -0800
committerFrancisco Jerez <currojerez@riseup.net>2018-02-24 15:28:36 -0800
commitc6c64d4d6a134231cbdbe09e3c6c87adb811ac7d (patch)
treea516b770ffeff0c7a1a2a8fb41cd99701428bdfc /src/compiler/glsl/ast_to_hir.cpp
parent537bb1da98c34eafbed714d468c56fc0af543e49 (diff)
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@intel.com>
Diffstat (limited to 'src/compiler/glsl/ast_to_hir.cpp')
-rw-r--r--src/compiler/glsl/ast_to_hir.cpp1
1 files changed, 1 insertions, 0 deletions
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: