projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537bb1d
)
glsl: Silence warnings when reading from a framebuffer fetch output.
author
Francisco Jerez
<currojerez@riseup.net>
Mon, 12 Feb 2018 23:55:13 +0000
(15:55 -0800)
committer
Francisco Jerez
<currojerez@riseup.net>
Sat, 24 Feb 2018 23:28:36 +0000
(15:28 -0800)
Framebuffer fetch outputs are implicitly initialized upon entry to the
fragment shader.
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/ast_to_hir.cpp
b/src/compiler/glsl/ast_to_hir.cpp
index 5acbaa321a9bb37790550294eb60e9d4bca60a2a..badfbe6816f29b51adae4afbc1a5f2d402678a91 100644
(file)
--- 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: