summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.h
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-03-14 10:32:17 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-03-31 12:52:29 +1100
commitc95e92b14d69c114b79d941c7e8902a0ea62c287 (patch)
treed8d7c50f21887ac9e7d55265af764a8c0a4c9e3d /src/compiler/glsl/link_varyings.h
parentd5c09d40b909cca43936b7f1a3ea16d6568d6203 (diff)
downloadexternal_mesa3d-c95e92b14d69c114b79d941c7e8902a0ea62c287.zip
external_mesa3d-c95e92b14d69c114b79d941c7e8902a0ea62c287.tar.gz
external_mesa3d-c95e92b14d69c114b79d941c7e8902a0ea62c287.tar.bz2
glsl: handle varyings that are not written to but have an xfb_offset
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/glsl/link_varyings.h')
-rw-r--r--src/compiler/glsl/link_varyings.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h
index 7919a8d..9ea79f0 100644
--- a/src/compiler/glsl/link_varyings.h
+++ b/src/compiler/glsl/link_varyings.h
@@ -108,6 +108,14 @@ public:
return this->next_buffer_separator;
}
+ bool is_varying_written() const
+ {
+ if (this->next_buffer_separator || this->skip_components)
+ return false;
+
+ return this->matched_candidate->toplevel_var->data.assigned;
+ }
+
bool is_varying() const
{
return !this->next_buffer_separator && !this->skip_components;