summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-09 07:02:36 +1000
committerDave Airlie <[email protected]>2016-06-09 07:37:43 +1000
commit2df46519e4aeb330df30890c2702d96891c18964 (patch)
tree349e0ca6883251c708f5b1d12bf1b9400b1384e0 /src/compiler/glsl/link_varyings.h
parent35616a9e0ef0511ebb77e7076c00f2eeb248933a (diff)
glsl/link_varyings: switch to 64bit check instead of double.
This is prep work for int64 support. Reviewed-by: Ilia Mirkin <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.h')
-rw-r--r--src/compiler/glsl/link_varyings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h
index 0ad4f740502..2126a5c6d98 100644
--- a/src/compiler/glsl/link_varyings.h
+++ b/src/compiler/glsl/link_varyings.h
@@ -151,7 +151,7 @@ public:
return this->size;
else
return this->vector_elements * this->matrix_columns * this->size *
- (this->is_double() ? 2 : 1);
+ (this->is_64bit() ? 2 : 1);
}
unsigned get_location() const {
@@ -160,7 +160,7 @@ public:
private:
- bool is_double() const
+ bool is_64bit() const
{
switch (this->type) {
case GL_DOUBLE: