diff options
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/ir.cpp | 1 | ||||
-rw-r--r-- | src/compiler/glsl/ir.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 2aa4affac9d..4dadfd27e23 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -1686,6 +1686,7 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name, this->data.image_volatile = false; this->data.image_restrict = false; this->data.from_ssbo_unsized_array = false; + this->data.fb_fetch_output = false; if (type != NULL) { if (type->base_type == GLSL_TYPE_SAMPLER) diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 68e774c03d1..5e1e9bf34c7 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -831,6 +831,14 @@ public: unsigned from_ssbo_unsized_array:1; /**< unsized array buffer variable. */ unsigned implicit_sized_array:1; + + /** + * Whether this is a fragment shader output implicitly initialized with + * the previous contents of the specified render target at the + * framebuffer location corresponding to this shader invocation. + */ + unsigned fb_fetch_output:1; + /** * Emit a warning if this variable is accessed. */ |