aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-02-24 16:37:02 +1100
committerTimothy Arceri <[email protected]>2016-03-31 12:51:27 +1100
commit4305a60173432635cde2f0f1dea8a715ed327bbc (patch)
treec763d08808798f7073ce4d71b2623153f99c3804 /src/compiler/glsl/link_varyings.h
parent0822517936d473f4889b07606e131e1dc3199644 (diff)
glsl: add xfb helpers and fields to the tfeedback_decl class
We also apply any array/struct offsets. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.h')
-rw-r--r--src/compiler/glsl/link_varyings.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h
index 8d504f6f0dc..339e9cf2f18 100644
--- a/src/compiler/glsl/link_varyings.h
+++ b/src/compiler/glsl/link_varyings.h
@@ -122,6 +122,16 @@ public:
return this->stream_id;
}
+ unsigned get_buffer() const
+ {
+ return this->buffer;
+ }
+
+ unsigned get_offset() const
+ {
+ return this->offset;
+ }
+
/**
* The total number of varying components taken up by this variable. Only
* valid if assign_location() has been called.
@@ -202,6 +212,16 @@ private:
int location;
/**
+ * Used to store the buffer assigned by xfb_buffer.
+ */
+ unsigned buffer;
+
+ /**
+ * Used to store the offset assigned by xfb_offset.
+ */
+ unsigned offset;
+
+ /**
* If non-zero, then this variable may be packed along with other variables
* into a single varying slot, so this offset should be applied when
* accessing components. For example, an offset of 1 means that the x