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>
This commit is contained in:
Francisco Jerez 2018-02-12 15:55:13 -08:00
parent 537bb1da98
commit c6c64d4d6a
1 changed files with 1 additions and 0 deletions

View File

@ -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: